Before Iraqi security forces retook this area south of Mosul in August, Islamic State fighters placed explosives at about 20 oil wells. Snipers detonated them from afar.