A powerful car bomb exploded near Somalia's parliament in the capital Mogadishu on Saturday, causing casualties, police and witnesses said.