Four suicide bombers stormed the police headquarters in a town north of Baghdad at dawn on Saturday, killing six SWAT officers after a one-hour shootout, security sources said.
The bombers shot dead the guards outside the compound in the town of Baiji, 180 km (112 miles) from Baghdad.
One of them was killed in the ensuing fighting inside the base and the other three blew themselves up when army reinforcements arrived.
It was not clear who was behind the attack, but security forces and police are prime targets for Sunni Islamist militants who have been regaining momentum in their insurgency against Iraq's Shiite-led government.
Al-Qaeda's Iraqi and Syrian branches merged earlier this year to form the Islamic State of Iraq and the Levant, which has claimed responsibility for attacks on both sides of the border.
Intensifying violence has raised concerns of a return to wider conflict in a country where Shiite Muslims, Sunnis and ethnic Kurds have yet to find a stable way of sharing power.
About 800 Iraqis were killed in acts of violence in August, according to the United Nations.
Violence kills 24 in IraqAttacks in Iraq killed at least 24 people on Tuesday, including several civilians who died when five car bombs exploded in the capital, security and ... Middle East
Iraq attacks kill 39 as official escapes assassinationAttacks across Iraq, including more than a dozen car bombs, killed 39 people on Sunday while the head of Baghdad's provincial council escaped an ... Middle East
Suicide bomber kills 21 at funeral in northern Iraq's NinevehA suicide bomber killed 12 people at the funeral for a member of a tiny Iraqi minority group Saturday, the latest in a months-long wave of bloodshed ... Middle East