Jaish al-Fursan, a group affiliated with the Pakistani Taliban, claimed responsibility for the attack.