Police in Somalia said Saturday that at least 32 people died and 63 others were wounded in an attack on a beach hotel in the capital, Mogadishu, the previous evening. Al-Qaida’s East Africa affiliate, al-Shabab, said through its radio that its fighters carried out the attack.