Former Pakistan president Pervez Musharraf has blamed India for the Torkham clash between the Afghan and Pakistani forces.
Musharraf made the online remarks after the death of a senior Pakistani army officer, who was initially injured during the fight with the Afghan forces.
"Afghanistan must not play into the hands of the divisive and subversive agenda of India and become anti-Pakistan," Khaama Press quoted him as saying.
Asserting that Kabul and Islamabad have shared values, ethnic, linguistic and religious linkages and common cultural tradition, the former president said that we must preserve and strengthen them at all cost.
Firing between the two countries first broke out on Sunday after the Afghan forces prevented Pakistanis from constructing a gate at Torkham.
Afghanistan has blocked repeated attempts by Pakistan to build a fence on sections of the roughly 2,200-km-long frontier, rejecting the contours of the boundary.
Meanwhile, both Afghan and Pakistani authorities have agreed on a ceasefire at Torkham after three days of intense tensions that led to heavy clashes.