Actually there are several systems for subs to launch surface to air missiles. And it is certainly possible that one was being tested.... however terrorism is more likely.
Wouldn't the possibility that a surface-to-air missile system was being tested inshore, adjacent to the flight path out of JFK, be essentially...zero?
Name one.
And it is certainly possible that one was being tested....
No, it isn't.