Afghanistan's Ministry of Interior (MOI) warned that the country's border with Pakistan was too vulnerable and easy for insurgents to use as they retreat after planning and carrying out attacks in Afghanistan.
MOI spokesman Sediq Sediqqi said on Monday that the safe havens of insurgents in Pakistan, just beyond Afghanistan's territory, were a central concern for the government.
"Our main concern is the shared border with Pakistan. Unfortunately insurgents are living close to the border and after attacking they are returning to their strongholds in a short time," Sediqi said.
He warned that if there was not an improvement in border control, the security of Afghanistan will deteriorate.
His comments come as Pakistan protested against the attack of militants on its security forces in the northern Dir region on Sunday night.
Six Pakistani soldiers and at least 11 militants were killed in the fighting that saw a reported 100 Taliban fighters attack three separate military posts.
The Pakistani Taliban claimed responsibility for the attack in a statement, but the country's government said the militants had crossed the border from Afghanistan.
Pakistan informed Afghanistan's ambassador that more needed to be done by the Afghan government to prevent such an attack happening in the future.
A military expert told TOLOnews that the Afghan government's failure in preventing insurgency stems from poor supervision of the border.
General Abdul Wahid Taqat said that the Afghan border police were not sufficiently equipped to control the border, and this only added to the greater problem of Islamabad not being tougher in the fight against insurgents.
"The Afghan government doesn't have a specific and program to protection the borders," he said. "If they had, they would not have assigned the border's responsibility to the police. The protection of the border is the duty of the Ministry of Defense," Taqat said Monday.