The woman had left a passenger train when she was hit by a freight train travelling in the opposite direction, police said.