"Pakistan condemns the deadly terrorist attack in Jalalabad this morning in which many precious lives were lost and a large number (of people) were injured," the Pakistan Foreign Office said in a statement.
It said such cowardly and indiscriminate attacks against civilians have no justification under any circumstances.
"We send our deepest sympathies and condolences to the families of the victims and pray for speedy recovery of the injured," it said.
A suicide bomber killed at least 33 people and wounded 100 others in the attack outside a bank in Jalalabad.
Karmi was the chief guest at the passing out parade of army cadets at premier Pakistan Military Academy Kakul. He is the first Afghan army chief invited for the occasion.
Six Afghan army cadets are also passing out for the first after getting training, as part of increased military cooperation between the two neighbours.