At least seven people were killed and 27 others wounded when a bomb went off outside a hotel near the international airport in Somalia's capital Mogadishu on Monday, medical officials said.