Two officials of the Frontier Corps (FC) were martyred and five injured in a cross-border attack in Kurram Agency, the Inter Services Public Relations (ISPR) said on Sunday.
The ISPR claimed that Pakistan expressed restraint following the attack on its troops.
According to ISPR, the troops were carrying out routine surveillance in Kurram Agency for plugging of gaps and making necessary preparations to start fencing along Afghan border.
Scores of locals in Kurram Agency of Federally Administered Tribal Areas (FATA) spilt on streets, in a show of solidarity with the armed forces of Pakistan after two of the soldiers were martyred in an attack from Afghanistan near the border on Sunday.
Khost provincial governor spokesman Talib Mangal confirmed the incident, but said two Afghan civilians and four Pakistani troops were killed. Announcements were made through loudspeakers in mosques, asking the Turi Bangash and other tribesmen to move to the border areas. "Military engagement is under way to defuse situation", read the statement. He added that local villagers and the Afghan Border Police retaliated with gunfire.
Clashes are frequent in the area as Afghanistan doesn't recognize the 2,400-kilometer Durand Line (drawn by Britain in 1896) as its worldwide border with Pakistan. Three civilians were also wounded, he added. Clashes are still underway, Col Hanan said.
Earlier in April, Afghanistan accused Pakistan of conducting the air strikes and firing hundreds of shells in Afghan's eastern border province of Kunar.
Kabul has long-accused Islamabad of providing safe havens for the Afghan Taliban, which has been waging an insurgency in Afghanistan for more than 16 years. It was once an ideal point for militants to move across the border in the past.