The officials said the boats kept their distance after the Navy ship fired a warning flare .