More than 2,000 refugees have crossed from Syria into Turkey, fleeing clashes pitting Kurdish fighters against the Islamic State (IS) group, a Turkish official said.