Tensions remain high at the border between Afghanistan and Pakistan as a Pakistani Army major wounded in cross-border clashes has died.
The death of Major Ali Jawad Changezi on June 14 was the fifth total fatality and second Pakistani to die from artillery exchanges at the Torkham crossing.
The clashes also killed three Afghan soldiers and left 18 wounded on both sides.
Pakistani Army chief General Raheel Sharif joined Khan's family for his funeral service while Prime Minister Nawaz Sharif lauded Khan for sacrificing his life for his country.
Meanwhile, angry protesters at the funeral of the Afghan soldier in Jalalabad chanted "Death to Pakistan."
Pakistan and Afghanistan have blamed one another for the violence, which forced the closure of Torkham on June 12.
Afghanistan does not recognize the present boundary, the so-called Durand Line, as an international border, and has denounced Pakistan's move to build a fence.
Pakistan says more security is needed to check unwanted and illegal movement.
Both sides are reinforcing troops at the border, and on June 14, Afghanistan's Foreign Ministry said it had summoned the Pakistani ambassador to register a protest against the violence.
Pakistan similarly summoned the Afghan charge d'affaires in Islamabad on June 13.