After a deadly attack on a political rally, prime minister and the army chief reiterate resolve to eradicate militancy