The surprising confession appeared to lend weight to accusations by Imran Khan’s party that the military had tampered with the vote count in dozens of races.
Though it was repelled, the incident is part of a worrying trend of increased assaults on military targets and a rise in extremist violence more generally.