Iraqi forces retook the town of Heet from the Islamic State group after weeks of fighting, the military said, the latest in a series of losses for the jihadists.