The accident was the first on a Spanish high-speed train track.