Islamic State militants attacked an Iraqi military headquarters overnight killing eight officers including a local commander, according to army and police officials.
The four militants, dressed as soldiers, attacked the compound near the town of Haditha 240 kilometers northwest of Baghdad, in Anbar province.
Military officials say one suicide bomber blew himself up at the gate of the compound, while the other three detonated explosives elsewhere inside the headquarters.
Islamic States claimed the attack in an online statement, but said it was conducted by two suicide bombers, both Syrian nationals.
The militant group has overran swathes of Iraq, including large parts of Anbar, in a sweeping offensive launched in June 2014, but has largely been on the defensive in the province since the middle of last year.
Iraqi tribesmen and security personnel defending Haditha, which lies near the country's second largest dam, have held off Islamic State militants for more than 18 months with the help of air strikes by a U.S.-led coalition.