A wildfire raging near luxury homes outside Spain's famed Costa del Sol beach resorts left three people injured on Sunday, with one victim in hospital with burns, officials said.