That's a very good question
The fact they were docked in a Karachi port, not exactly an overt friendly place, the captain would have at least a small security detail ?
They were probably watching the 2012 Demo Natl Convention when, as part of a patriotic collage projected behind the speaker, they showed a photo of a Russian frigate (instead of a USN vessel).
Maybe the DNC provided intel for the “raid.”