Chat with us in Facebook Messenger. Find out what's happening in the world as it unfolds.

(CNN)Eight people were killed and 20 others were wounded in an Iraq military operation and US airstrikes Saturday, the town's injured mayor told CNN.

Sharhabil al-Obaidi, the mayor of al-Baghdadi in Anbar province, said a bodyguard, a civilian and six police officers were killed after Iraqi military and special police forces raided a house. The bodyguard and civilian died during the raid.

Iraq's Joint Operations Command said Iraqi forces were going after a terrorist leader.

Iraqi local police officers and local tribesmen rushed to the scene, thinking the Iraqi troops who raided the house could be ISIS militants dressed as Iraqi troops, according to the mayor.

ISIS militants are known to have carried out many attacks and ambushes on Iraqi security forces and civilians while posing as Iraqi troops.

Read More

After the troops detained the suspect, and while they were searching the house, "the force was attacked by a hand grenade from one of the neighboring houses, prompting a quick response, and then the forces pulled back to their headquarters," the Joint Operations Command said.

The joint command statement said Iraqi forces on the ground called in air support when they saw the police, believing them to be "a group of gunmen gathering without coordination with the assigned force."

Obaidi said an airstrike hit the gathering, killing the six police officers and wounding 20 others, including security officers, the mayor and town's police chief.

"We demand Iraqi government to investigate the attack and give an explanation on why such operation was conducted without informing local authorities," Obaidi said.

"Those security officers who were killed in the airstrikes had fought ISIS militants before," al-Obaidi added.

Col. Ryan Dillon, a US Army spokesman for the Combined Joint Task Force, said the incident is under investigation but US warplanes give support when requested and approved by the Iraqi military.

A US military official told CNN they are still investigating to see whether there were US aircraft in the area at the time.

Al-Baghdadi, about 200 km (125 miles) northwest of Baghdad, is the closest village to the Al Asad Air Base, where the US military has planes.

Al-Baghdadi was mostly under ISIS control in 2015 for a few weeks before being was liberated.