A wildfire in southwestern France has forced the evacuation of 10,000 people from nearby towns.