At least 18 people were killed and 45 wounded by a car bomb targeting the military in the heart of the Turkish capital Ankara on Wednesday, the city's governor said.