At least 40 people were killed and more than 120 injured when a train packed with holiday travelers derailed in the early morning hours on Wednesday in southern Pakistan .