A wildfire in southern Spain has claimed 12 lives, as firefighters battle the blaze.