Hassan Sheikh Mohamud, Somalia’s president, has granted amnesty to hundreds of young Somali pirates to reduce the threat to shipping in the seas near the Horn of Africa, a