Ankara Governor Kemal Onal said the type of attack was similar to those carried out by Kurdish rebels.
He said the suicide bomber had spent two years in prison for hanging illegal posters and resisting police.
Germany, the current European Union president, condemned what it called the "ruthless terror attack" and called for those behind the bombing to be brought to justice.
(dpa, AFP, AP)