Twelve people were killed in India after they disembarked a train bound for Mumbai, only to be struck by another train, the authorities said.