Somali pirates attack US-flagged ship, vessel evades capture