Iraqi forces fought on Friday to retake part of a northern town and areas seized by gunmen, an official said.