A gunman opened fire at a social security office and at a courthouse in central Athens on Tuesday, wounding several people, Greek authorities said.