An ISIS militant has managed to kill an entire family as he fled Iraqi forces sweeping the countryside for the last of the militants, local media reported.

Iraqi Major General Qasim al-Mohammadi has said that his forces faced an ISIS surprise attack in the city of al-Baghdadi on Thursday, less than a day after they pushed the terrorists out of the area.

Iraqi forces and popular forces managed to kill four fighters strapped with explosive vests, but a fifth got away and fled into a nearby home.

The militant blew himself up, killing a family of six.

“The security forces and the Popular Mobilization Forces supporting them were able to besiege five suicide bombers in the area of Baghdadi. Four of them were killed while the fifth suicide bomber detonated himself inside a house, killing a family of six people, which included a father, his wife and four of his children,” Mohammadi said, as quoted by the state-run General Organization of Syrian Radio and Television.

The commander noted that the militants had “infiltrated al-Baghdadi through the desert.”

Iraqi army, backed by Kurdish fighters and allied militias, have taken back the country from ISIS militants, who captured large swaths of territories in 2014.