Russia on Saturday said it would expel a Ukrainian diplomat, prompting an immediate pledge of retaliation from Kiev, further escalating tensions over Moscow's troop build-up on Ukraine's eastern flank.
The detention of a Ukrainian consul in the second city St. Petersburg comes at a time of global concern of a repeat of Moscow's 2014 aggression, when Russia annexed the peninsula of Crimea and backed separatists in Ukraine's east.
Moscow claimed the Ukrainian diplomat had been caught "red-handed" trying to obtain sensitive information.
In response, the Ukrainian foreign ministry protested "the illegal" detention of its diplomat and said Kiev would expel a senior Russian diplomat.
Kiev has been battling Russian-backed separatists in eastern Ukraine since 2014 and clashes intensified early this year, effectively shredding a ceasefire agreed last July.
Around 30 Ukrainian troops have been killed since the start of the year, compared to 50 last year. Most of them were victims of sniper fire.
Russia has detained a number of Ukrainian nationals on suspicion of spying in recent years but the arrest of a diplomat is rare.
"A Ukrainian diplomat, a consul of Ukraine's Consulate General in St. Petersburg, Alexander Sosonyuk, has been detained by Russia's FSB," the security service said in a statement, using the Russian language spelling of his name.
He was held on Friday, the security service said. Kiev said the diplomat had spent several hours in detention.
The Russian Foreign Ministry said Saturday it had summoned Ukraine's charge d'affaires Vasyl Pokotylo and told him that the Ukrainian diplomat had 72 hours to leave the country "beginning April 19."
"The Russian side pointed to the inadmissibility of such kind of activity," the Foreign Ministry said in a statement.
Russia's domestic intelligence agency said Sosonyuk had been caught "red-handed" during a meeting with a Russian national as he sought to receive "classified" information.
"Such activity is not compatible with his diplomatic status and is clearly hostile in nature towards the Russian Federation," the FSB said.
"In conformity with international law, measures will be taken against the foreign diplomat."
'Crude violations'
In Kiev, the Ukrainian foreign ministry said it protested the diplomat's detention and rejected Russia's accusations.
Foreign ministry spokesman Oleg Nikolenko said Russia had "crudely" violated diplomatic conventions and sought to escalate tensions.
"In response to the above-mentioned provocation, a senior diplomat of the Russian Embassy in Kiev must leave Ukrainian territory within 72 hours beginning April 19," Nikolenko told AFP. He did not provide further details.
Faced with the largest deployment of Russian troops on Ukraine's borders since 2014, President Volodymyr Zelenskiy has requested more help from the West, and Western leaders have urged Russian President Vladimir Putin to stop intimidating Ukraine.
Tensions between Russia and Ukraine come against the background of a new war of words between Moscow and Washington as new U.S. President Joe Biden seeks a tougher line against Putin.
The U.S. on Thursday announced sanctions and the expulsion of 10 Russian diplomats in retaliation for what the White House says is the Kremlin's U.S. election interference, a massive cyber attack and other hostile activity.
Russia said Friday it would expel U.S. diplomats and sanction U.S. officials in response while recommending the U.S. envoy leave Russia "for consultations."