Eight people were killed Thursday when Iraqi security forces put an end to the assault by armed men on a government ministry in eastern Baghdad, an official told Efe.

A group of six armed men opened fire on the headquarters of the Transportation Ministry in the capital's Qanat district, the source said, denying that the incident occurred at the Human Rights Ministry, as police had reported earlier.

Four attackers were shot dead by Iraqi forces, while the other two blew themselves up with explosive charges affixed to their bodies amid the gun battle.

The unidentified attackers, who had gained access to the building through the garage, kidnapped a number of ministry workers who were later freed and evacuated by the security forces.

Interior Ministry spokesman Saad Maan told state television that the security forces surrounded the building before confronting the armed group.

On Wednesday, at least 18 people were killed and 43 others injured in bombings and a shooting attack in the Iraqi capital.

Iraq is experiencing a resurgence of sectarian and political violence that claimed the lives of 8,868 people in 2013, according to estimates from the United Nations.

The vast majority of the dead were civilians. EFE