After all the passengers, including the crew, had deboarded, the train rolled down the track and climbed onto a platform before coming to a stop, the official added.
On Tuesday night, an electric multiple unit (EMU) train coming from Shakur Basti derailed and climbed the platform at Mathura Junction. However, no casualties have been reported in the incident.
A big chunk of a balcony of the building collapsed on devotees walking past it on Tuesday evening and as work was underway to rescue those trapped under the debris, a wall collapsed.
A police team is collecting footage from the CCTV installed in the area where the incident took place and four police teams have been formed to trace the assailants.