Most of the other recent attacks have been claimed by factions of the Pakistani Taliban, which is waging its own fight against the government but whose ranks have also cooperated with, and sometimes defected to, Islamic State.