The ship was under contract to the Navy , which has been wary of small motorboats since the attack on the U.S.S. Cole in 2000 , in which terrorists drove a small vessel packed with explosives into the ship as it lay at anchor at a Yemeni port , killing 17 crew members .