A large explosion followed by heavy gunfire and several more blasts hit an area around Somalia's presidential palace late Tuesday, witnesses said.