The two sailors were flown to a hospital in critical condition, officials said