Jamaat-ul-Ahrar, a breakaway faction of the Pakistani Taliban, claimed the attack.