The train was moving slowly along the track, with several pedestrians waiting to cross the road.