Emergency services in Andalucia, the province where the accident happened, said at least 25 people were seriously injured.