Pakistan on Sunday called on the Taliban government in Kabul to take "stern actions" against militants launching attacks against the country from inside Afghanistan, a day after alleged rocket attacks by the Pakistani military killed six Afghans.
Border tensions between Pakistan and Afghanistan have risen since the Taliban seized power last year, with Islamabad claiming militant groups are carrying out regular attacks from Afghan soil.
The Taliban deny harbouring Pakistani militants, but are also infuriated by a fence Islamabad is erecting along their 2,700-kilometre border.
Fresh tension erupted after five children and a woman were killed in Afghanistan's eastern province of Kunar on Saturday in alleged rocket attacks that Afghan officials blamed on the Pakistani military.
While the Pakistani military has not confirmed whether it carried out the assault, Islamabad insisted it was facing continuous "terrorist" attacks from across the border.
"Pakistan, once again, strongly condemns terrorists operating with impunity from Afghan soil to carry out activities in Pakistan," the foreign ministry said in a statement on Sunday.
"Pakistan requests the sovereign Government of Afghanistan to secure Pak-Afghan Border region and take stern actions against the individuals involved in terrorist activities in Pakistan."
Seven Pakistani soldiers were killed in North Waziristan district on Thursday by "terrorists operating from Afghanistan," the ministry said.
"Unfortunately, elements of banned terrorist groups in the border region, including TTP, have continued to attack Pakistan's border security posts, resulting in the martyrdom of several Pakistani troops."
Areas along the border have long been a stronghold for militant groups such as the Tehrik-e-Taliban Pakistan (TTP), which operates across the porous frontier with Afghanistan.
The Afghan Taliban and the TTP are separate groups in both countries, but share a common ideology and draw from people who live on either side of the border.
Thousands of people usually cross the border daily, including traders, Afghans seeking medical treatment in Pakistan, and people visiting relatives.
Afghanistan's Taliban government meanwhile warned Pakistan after the rocket attack.
"This is a cruelty and it is paving the way for enmity between Afghanistan and Pakistan," Taliban government spokesman Zabihullah Mujahid said late on Saturday.
"The Pakistani side should know that if a war starts it will not be in the interest of any side."
Agence France-Presse