Clashes in jihadist-held Iraq city halt after residents seized