IS trækker sig fra historisk by og efterlader net af landminer