Iraqi forces repelled an offensive launched in the early hours of Saturday by Daesh on the Sunni town of Shirqat, south of Mosul, during which 38 military and civilians were killed and about 40 more wounded, security sources said.

Daesh lost 24 fighters in the attack, which ended around midday, the sources said.

About half the dead in the city and its surroundings were civilians and the rest members of the Iraqi armed forces and Sunni tribal fighters.

Read: Iraq official admits to war crimes in Mosul

Authorities declared a curfew in the region between Mosul and the Iraqi capital Baghdad.

Daesh lost Shirqat to US-backed Iraqi government forces and tribal fighters last year. Its fall paved the way for the offensive on Mosul, the militants’ de-facto capital in Iraq.

Eight months into the US-backed offensive to take back Mosul, all of the city has been retaken by Iraqi government forces except an enclave by the western bank of the Tigris river.

The militants continue to control pockets south and west of Mosul, as well as swathes of territory near the border with Syria and inside Syria.