NATO ship foils pirates, frees hostages in Gulf of Aden