Iraqi security forces have repelled an attack by Islamic State militants on the Baghdad suburb of Abu Ghraib, officials said.
Three suicide car bombers struck a security force barracks as gunmen opened fire, according to police in the western region of the capital.
At least 12 members of government and paramilitary security forces were killed and 35 wounded, they added. The clashes also left a silo on fire.
A medical official confirmed the casualty figures.
The commander of military operations in western Baghdad, Major General Saad Harbiya, said the situation is "under control" and a local curfew has been imposed.
Abu Ghraib, about 18 miles from Baghdad city centre, is the location of a prison of the same name where US troops committed notorious abuses against Iraqi detainees after the 2003 invasion.
It is halfway between Baghdad and Fallujah, which is controlled by IS. Security forces also prevented IS from seizing Abu Ghraib when the extremists swept across northern and western Iraq in the summer of 2014.