The vessel was transporting illegal narcotics through international waters to the United States, the president said.