A Turkish journalist being tried on terrorism charges survived an apparent assassination attempt outside the courthouse