The gunman, who has been detained, was reported to have called himself a "soldier of Allah" as he carried out the attack inside Turkey's highest administrative court building in Ankara.
The court had faced criticism for enforcing a ban on Muslim headscarves in schools and state offices.
The shooting has angered many Turkish secularists, who see it as an attack on the country's secular tradition.
(AP, Reuters, dpa, AFP)