Hundreds of firefighters in Spain have been battling a deadly wildfire in the south of the country.