An explosion was reported near the presidential palace in Somalia’s capital, Mogadishu.