At least five people were killed and six injured when a car bomb exploded outside the port in the Somali capital Mogadishu.