Kurdish security forces have killed the gunmen who attacked a government building in Iraq's northern Kurdish city of Irbil, ending a siege, officials said.
Iraqi media reported that three attackers had been killed.
Clashes erupted between the gunmen and policemen when the gunmen attacked the building in Irbil, the seat of the Kurdistan regional government (KRG) on July 23.
At least one gunman was said to have carried out a suicide attack inside the building.
Others had reportedly held hostages. One of the hostages was critically wounded, reports said.
No group has so far claimed responsibility for the attack.
But Kurdish officials suggested the gunmen could be members of the extremist group Islamic State (IS).
Iraq declared victory over IS in December but IS still holds pockets of territory and continue to carry out deadly attacks.