Rescuers have pulled out all passengers from the train as authorities pledged a thorough investigation into the incident.