The attacks come days after the Taliban pledged retaliation for Pakistani air strikes inside Afghanistan.