Islamic State attacked an Iraqi police checkpoint near the southern city of Najaf on Sunday, killing seven policemen as government forces in the north made more gains against the militants in Mosul, their last major stronghold in the country.