At least 12 people have died and 23 others are unaccounted for as firefighters in southern Spain battle a rapidly spreading wildfire, officials said.