There has been an explosion near a courthouse in the western city of Izmir, Turkey, state-run Anadolu news agency reports.