Russian security forces detained a former journalist who works as an aide to the head of Russia’s space agency on Tuesday and accused him of treason, saying he had passed military secrets to an unnamed NATO power.

Footage released by the FSB security service showed Ivan Safronov being detained outside his Moscow flat by armed agents who searched him before putting him into a van.

Safronov denied passing state secrets to a foreign power during his interrogation, TASS news agency reported.

Safronov, who has covered military affairs for two national newspapers, faces up to two decades in jail if found guilty. His trial is expected to be held behind closed doors because of its sensitive nature.

His detention raised fears among journalists of a new wave of repression, and staff at Kommersant, one of his former newspapers, said in an editorial that the allegations looked absurd because he was a real patriot.

Some of Safronov’s former journalist colleagues protested outside FSB headquarters before being detained.

The FSB accused Safronov of working for an unnamed foreign intelligence service.

“Safronov, carrying out tasks for one of the NATO countries’ intelligence services, gathered and handed over to its representative state secrets and information about military-technical cooperation and about the defense and security of the Russian Federation,” it said.

Safronov’s lawyer, Oleg Eliseyev, said he had not yet been given access to his client.

Kremlin spokesman Dmitry Peskov said he did not believe the charges were related to Safronov’s work as a journalist.

The space agency said Safronov had no access to secrets and the case was not related to his work there.

TASS reported last year that prosecutors wanted to bring a case against Kommersant for disclosing a state secret.

Russian news portal the Bell said then that an article which Safronov had worked on had disappeared from Kommersant’s site.

It said Egypt had agreed to buy Russian Sukhoi SU-35 fighter jets. Washington threatened Egypt with sanctions if the deal went through.