The attack took place in Quetta, the capital of the southwestern province of Balochistan. A suicide bomber driving a vehicle packed with explosives rammed one of the train cars as the train passed a signal.
The blast overturned and set fire to two train cars. Several nearby buildings and vehicles parked along the tracks were also damaged.
According to preliminary information, the train was carrying Pakistani military personnel and their family members. They were traveling to the city of Peshawar for Eid al-Fitr celebrations.
The separatist Balochistan Liberation Army claimed responsibility for the attack, saying in a statement that the country’s security forces were the target.
Local medics said dozens of wounded people were hospitalized. Several victims are in critical condition.