The gunman fired at least three shots outside the court, eyewitnesses said.
Can Dundar escaped unharmed but a reporter was reportedly injured.
Police say they have arrested the suspected gunman.
Erdem Gul, a former colleague of Can Dundar who is also on trial, said the attacker shouted “traitor” as he fired.
Can Dundar, a former newspaper editor, was briefing reporters outside the courthouse when the incident occurred.
The journalist is standing trial alongside Erdem Gul over a series of reports in Cumhuriyet newspaper that alleged Turkish intelligence operatives were transporting weapons to Syria in early 2014.
Can Dundar and Erdem Gul face life in prison if convicted.
Turkey’s President Recep Tayyip Erdogan has faced international criticism over the decision to prosecute the two journalists.
Can Dundar and Erdem Gul are among a number of journalists and human rights activists who have been detained or prosecuted in Turkey in recent months.
The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…