The presidential palace in Somalia's capital Mogadishu, home to the country's internationally-backed government, was hit by a massive car bomb followed by a raid by gunmen on Friday, police and witnesses said.