A 22-year-old firefighter has died tackling a wildfire in France as the country deals with more scorching temperatures.