Firefighters have started to rein in the wildfire in Spain's southern Andalusia region that killed 12 people.