The gunfire stopped, and the Kurdish peshmerga commander confidently declared the village of Shakouli liberated from Isis. Pleased to have made such good progress in just a few hours, Lieutenant Mehsen Gardi started congratulating his officers.
But he was interrupted by a large explosion that caused the ground to tremble. It was a suicide bomb, followed in quick succession by a second and then third.
Gardi had underestimated his opponent. As Isis (Islamic State) battles to defend Mosul, its last major stronghold in Iraq, its footsoldiers are putting up a fierce fight to stop the troops reaching the city.
More than 4000 Kurdish peshmerga fighters, supported by dozens of US, French and British special forces advisers on the ground and coalition planes in the skies, began moving in on villages and towns surrounding the city from the east. The Iraqi Army is approaching from Baghdad to the south.
"There were less than 10 Daesh in the village," said Gardi. "But they were running around like rats in and out of tunnels and surprising us with suicide attacks and snipers."