Turkish authorities detained two alleged left-wing militants who attacked a parliament security officer with a razor-like object in Ankara, the prosecutor's office said.
Before the attack, the suspects had already been charged with membership of the far-left Revolutionary People's Liberation Army-Front (DHKP-C).
The incident occurred at the parliament visitors entrance on Tuesday, the prosecutor's office said in a statement.
One of the suspects had a bag holding wires and a black box that raised fears of a bomb, however this was later dismissed.
Over the years, the DHKP-C has launched sporadic attacks and is listed as a terror group by Turkey, as well as the European Union and the United States.
Fahrettin Altun, communications director at the Turkish presidency, said on Twitter that the attack targeted the "national will" and "the peace of the nation."