Thousands of people fled a migrant camp on the Greek island of Lesbos after fire swept through tents and cabins during violence among residents, police said.