As Asim Munir, Pakistan’s military chief, seeks to project strength abroad, militant violence in his country is the worst it has been in a decade