JetBlue said the false alarm was sent to JFK tower during the radio issue which prompted a strong police response.

Port Authority Police Superintendent Edward Cetnar discussed the plane scare on Wednesday and said it was the pilot's mistake.

"He entered the wrong code which enters the hijack duress signal, obviously we have protocols in place when something like that happens we exhaust all options, communications and stuff like that," Cetnar said. "They were having communications problems, pilot was unable to communicate with the tower, and we had to make sure even though we communicated with them by phone at one point, that everything was OK."

Cetnar said they still had to make sure that the passengers were OK and there was no nefarious activity going on in the plane.

Port Authority officials said responding officers did a good job and were able to get the plane back to the gate and JetBlue took it from there.

"It was a really successful and peaceful scare, if I could put it that way," Cetnar said. "Cops did a great job last night."

Video from the runway showed dozens of emergency vehicles surrounding the plane.