Pakistan on Wednesday condemned what it called unprovoked firing on its border posts in Bajaur tribal region from the Afghan side of the border.
Pakistan military says that two soldiers were killed and three injured by rockets fired from Afghanistan early Wednesday.
"Pakistan condemns these unprovoked attacks. This matter has been raised with the Afghan government in Kabul and with their embassy in Islamabad," the Foreign Ministry said.
The Foreign Ministry spokesperson said it has been emphasized that Afghanistan must take concrete steps to stop the use of its territory against Pakistan.
"For its part, Pakistan remains committed to supporting all efforts for peace and stability in Afghanistan," she said in a statement.
Giving details of the Wednesday attack, the foreign ministry said two Pakistani border posts, Manozangal and Moukha tops in Bajaur Agency, were attacked by terrorists from across Afghanistan.
"As a result of this unprovoked firing, two Pakistani soldiers were martyred and three others, including one officer, were injured."
The foreign ministry said it was the third incident of cross- border attacks in the last 10 days.
There was no immediate reaction from the Afghan side of the border.
On Sunday, the Pakistani military said nearly 200 Pakistani Taliban fighters, who officials say, now operate from Afghan soil, launched attacks on Pakistani border posts in Bajaur tribal region, killing one soldier and injuring several others.
In retaliation, Pakistani forces had killed 16 militants, according to the army.
Afghan officials said that Pakistani rockets had also killed six people on the same day in eastern Kunar province.
Spokesman for the Afghan Defense Ministry, Zahir Azimi, also said on Sunday that Pakistani helicopters crossed the border and flew over Kunar.
Both countries have also lodged formal protests over the cross- border attacks.
The attacks occurred at a time when cooperation of the two countries are needed for the peaceful presidential election runoff in Afghanistan in June.