Sunni militants capture northern Iraqi town