The bomb exploded when nearly 100 passengers were waiting for a train to travel to the city of Rawalpindi from Quetta, the capital of the restive Balochistan province, said a senior police officer.