A suicide car bombing followed by an assault by grenade-throwing gunmen on a police headquarters in a disputed city in north Iraq killed 30 people on Sunday.
The vehicle that was detonated in central Kirkuk was painted to appear as though it was a police car, and the militants who sought to seize the compound were dressed as policemen, witnesses said.
The attack shattered a relative calm in recent days in Iraq, which has been grappling with a political crisis pitting Prime Minister Nuri al-Maliki against his erstwhile government partners amid weeks of ongoing protests calling for him to resign, less than three months before key provincial elections.
No organisation immediately claimed responsibility for the attack, but Sunni militants including al-Qaeda's front group in Iraq frequently target security forces and government targets in a bid to destabilise the country and push it back towards the sectarian bloodshed that blighted it from 2005 to 2008.
The initial suicide car bomb was set off during morning rush hour, and was quickly followed by three gunmen dressed in police uniforms, armed with hand grenades and suicide vests, bursting through the main gate of the Kirkuk police compound in the direction of the headquarters building.
They threw multiple grenades as they sought to reach the building, but were killed before they could get there, witnesses said.
"I saw a vehicle stop at the checkpoint at the main entrance, and the police started checking it," said Kosrat Hassan Karim, who was nearby when the attack took place.
"Suddenly, a loud explosion happened, it was terrifying."
"I saw many people killed inside their cars -- I have never seen such a big explosion in my life."
Brigadier General Natah Mohammed Sabr, the head of Kirkuk city's emergency services department, put the toll at 30 dead and 70 wounded.
In addition to the casualties, the attack caused massive damage to nearby buildings and shops, according to an AFP journalist at the scene.
The massive explosion also killed people in nearby buildings. Mohammed Aziz, who works in an office building adjacent to the police headquarters, said at least two of his colleagues died in the blast.
Police largely cut off traffic in the centre of the city and evacuated offices and businesses in the area. They managed to defuse one of the attackers' suicide vests, but were still working to disarm the other two.
Kirkuk, an ethnically mixed city 240 kilometres (150 miles) north of Baghdad, lies at the heart of a swathe of disputed territory claimed by both the central government and Iraq's autonomous northern Kurdish region.
The unresolved row is persistently cited by diplomats and officials as the biggest threat to Iraq's long-term stability.
Militants often exploit a lack of coordination between the two sides' security forces and launch deadly attacks in the city, which remains one of the most violent in Iraq, and also in nearby towns.
The violence was the latest in a spike in unrest that comes amid the political tension -- 246 people were killed last month, the most since September, according to an AFP tally based on reports from security and medical officials.
Attacks are dramatically lower across Iraq since their peak in 2006 and 2007, but bombings and shootings remain common.