At least 18 people were killed and 20 wounded when two car bombs exploded in the Somali capital of Mogadishu, the city's main ambulance service said.