Turkey's state-run news agency says a man accused of spying for the United Arab Emirates has committed suicide in prison.

The man was one of two suspects arrested in Istanbul earlier this month on charges of "political, military and international espionage." The suspects have not been identified.

Anadolu Agency said Monday one of them hanged himself at Silivri prison on the outskirts of Istanbul. It did not provide further details.

The men had allegedly confessed during interrogation that they had been spying on Arab dissidents based in Turkey on behalf of the UAE, Turkish officials said.

Turkish authorities were also investigating the possibility that they could have been involved in the killing of Saudi journalist Jamal Khashoggi at the Saudi Consulate in Istanbul last year.