A deadly fire in Spain has killed at least 10 people and injured more than a dozen, leading officials to find shelter for displaced residents.