The accident happened between Mundapandey and Rampur railway stations, Northern railway spokesperson Neeraj Sharma said, adding that two people have been injured in the incident.
A compensation of Rs 50,000 has been ordered to those injured, news agency Press Trust of India reported.
Railway Minister Suresh Prabhu ordered an enquiry to ascertain causes behind the accident.
Personally monitoring situation.Directed senior officers to rush to the spot.Ensure speedy relief and rescue operations 1/ https://t.co/lNoLkDHcI6- Suresh Prabhu (@sureshpprabhu) April 15, 2017
He said strict action will be taken against those found guilty.
Moradabad Divisional Railway Manager (DRM) has reached the spot to oversee the rescue and relief operations. A medical team has also reached, Mr Sharma said.
Railways have also provided helpline numbers in the wake of the incident.