A man carrying an automatic weapon and a bomb was captured in front of İstanbul’s historic Dolmabahçe Palace on Thursday, according to the Turkish newspaper Hurriyet Daily News.

The suspect was reportedly detained after throwing a hand grenade at the guard post that failed to explode. The report said the man was planning an attack on the palace, which houses a prime ministerial office and is often used for receptions.

An automatic gun and a makeshift bomb were found on the suspect.

He was noticed and apprehended by police officers on duty for a ceremony honoring Turkey’s founder Mustafa Kemal Atatürk, who died in the palace in 1938.

Police blockaded the area and began an investigation, as the suspect was taken to the police station. Security forces in the area were also mobilized.