US captain freed; Somali pirates vow to retaliate