The ceasefire follows days of deadly border clashes and Pakistani airstrikes in Afghanistan’s Kandahar and Kabul provinces targeting Taliban positions.