Turkish police say they subdued a man Thursday after he threw grenades and fired a weapon at President Recep Tayyip Erdogan's Istanbul office.

Istanbul Police Chief Selami Altinok told the state-run Anadolu Agency that officers destroyed two unexploded grenades. The man was also armed with a small weapon and an assault rifle. He was arrested after the incident in front of the offices at the Dolmabahce Palace in downtown Istanbul. The Ottoman palace was once the residence of the founder of the Turkish Republic, Mustafa Kemal Ataturk.

Police did not say if Erdogan was present at the time.

Altinok said the man is suspected to be a member of a terrorist organization. He said: "The individual's identity and affiliation is obvious to us. . He has spent time in prison."