A 21-year-old French footballer playing in France's second division has died after drowning during the heatwave that has gripped France.