At least three people including a child have been killed in a car bomb blast outside a restaurant in the capital Mogadishu, officials and witnesses say.