The incident comes nine months after 45 people were killed in a rail accident in southern Spain.