Train barrels into another in Pakistan, killing at least 40