Indian police officials walk with Subhash Jangir (C/L)and Maulana Ramzan (C/R) in New Delhi on October 27, 2016, after they were arrested for alleged espionage activities for South Asian neighbour Pakistan. India has announced that it was expelling a Pakistani visa official for suspected spying after he was briefly detained carrying sensitive defence documents, with tensions between the nuclear-armed neighbours already running high. The official was detained at the Delhi zoo where he had arranged to meet two alleged Indian co-conspirators to exchange information including troop deployment along the border. The two Indian nationals have been charged under the Official Secrets Act and been remanded into custody. One of the men told reporters outside court that he was only 'teaching children'.

India and Pakistan on Thursday announced they would each expel one of the other's diplomats amid growing tension between the nuclear-armed arch-foes over the disputed region of Kashmir.

India said it would expel a Pakistani diplomat based in New Delhi who allegedly ran a spy ring that collected sensitive information about Indian security operations along its border.

Late on Thursday night, Pakistan's foreign ministry said it had declared an Indian diplomat, Surjeet Singh, persona non grata and given him 48 hours to leave the country.

Police in the Indian capital said the Pakistani diplomat was detained on Wednesday outside the gates to Delhi Zoo, where he had met two Indian associates whom police believe he had recruited to spy for him.

The Pakistani diplomat, who reportedly worked in Pakistan High Commission's visa section, and his alleged Indian accomplices were found with forged documents, defense-related maps, deployment charts and lists of officers working along India's border with Pakistan, Indian police said in a statement.

"There was high probability that the information passed on by these anti-national elements to PIO (Pakistan intelligence operative) is being used against the national interests and could be highly detrimental for national security," they said, adding they had been trying to break the spy ring for six months.

An Indian foreign ministry spokesman said the man, who was released from custody under diplomatic immunity rules, must leave the country by Saturday.

Pakistan's High Commission in New Delhi rejected the allegations, saying in a statement it "never engages in any activity that is incompatible with its diplomatic status."

Later on Thursday, Pakistan's foreign ministry announced it had declared Singh persona non grata and informed the Indian High Commission he had until Saturday to leave the country.

The statement said Singh was accused of activities "that were in violation of the Vienna Convention and the established diplomatic norms" but did not elaborate.

Indian officials were not immediately available to respond to the accusation late on Thursday.

India and Pakistan have been at loggerheads since a group of gunmen killed 19 Indian soldiers in September at an army camp in Kashmir, an attack India blamed on Pakistan-based militants.

India said it had sent special commandos into Pakistan-controlled Kashmir to kill militants in a retaliatory operation that sharply soured relations between the neighbors.

Pakistan says the operation never happened and accuses India of inventing it to distract attention from its crackdown on protests in the part of Kashmir it controls.

Indian and Pakistani troops face off against each other along the de facto border in divided Kashmir - a region they both claim in full but control in part - and have exchanged fire several times this week in cross-border shelling.