ISLAMABAD — Pakistan says Afghanistan has freed two Pakistani diplomats detained in Kabul.

Foreign Ministry spokesman Nafees Zakaria said on Thursday that the envoys have returned to the Pakistani Embassy in the Afghan capital. Pakistan had protested the detentions a day earlier, calling it a violation of international conventions.

Kabul police say they were not aware of any detentions. Pakistan did not identify the diplomats or provide further details about when they were detained and released.

The two neighboring countries have long accused each other of turning a blind eye to militants operating along their porous border. Afghan and Pakistani troops traded fire across the disputed border earlier this month. The shootout caused casualties on both sides.