Turkish officials say police have detained two suspected left-wing militants who tried to enter the country's parliament with sharp objects and a hoax explosive device.

Fahrettin Altun, the presidential communications director, said in a tweet early Wednesday that the suspects were members of the banned Revolutionary People's Liberation Party-Front, also known as DHKP-C.

He called their attempt a "terrorist act against the will and the peace of the nation."

The state-run Anadolu Agency said the suspects — a woman and a man — arrived at the parliament building on Tuesday and tried to take a security official hostage before they were subdued.

The DHKP-C is considered a terror organization by Turkey, the U.S. and the European Union.

Altun said their "internal and external connections will be revealed and accounted for."