Sounds like a scene from the movie The Bedford Incident.
We have been there and done that. Captains of U.S. Naval vessels are authorized to use force to defend their ships without having to clear it through the CoC if they believe the threat is real and imminent. Captain Rogers of USS Vincennes CG-49 exercised that authority when he shot down an Iranian flight 655 with 290 persons on board.