Armed police stormed a JetBlue aircraft after the pilot used the wrong radio code and accidentally sent a warning it was being hijacked

A pilot mistakenly reported that his plane was being hijacked rather than reporting issues with his radio, The New York Post reports.

Armed police entered the plane and told passengers to keep their hands in the air as police and firefighters surrounded the craft.

Passengers shared their experiences on social media, describing the situation as scary.

The Federal Aviation Administration said it will investigate.

Armed police boarded a JetBlue plane as terrified passengers were told to keep their hands in the air after a pilot mistakenly told air traffic control that the plane had been hijacked.

The pilot meant to indicate to the radio control tower at New York's JFK airport that his plane was having issues with his radio, The New York Post reports. Instead, the pilot sent a false alarm that signaled the craft was being hijacked, leading to the arrival of police and firefighters, who surrounded the plane.

At one point, the pilot held up a piece of paper with his phone number written on it so police could call him to find out what happened, a source told The New York Daily News.

Passengers on Flight 1623, which was bound for Los Angeles, shared footage of the incident on social media.

The videos show armed police boarding and inspecting the plane. One passenger described the moment as "super scary" on Twitter.

Another user said 10 "heavily armed cops" boarded the plane.

JetBlue Airways described the incident as a "false alarm" in a statement.

"While communication was reestablished via alternate channels, authorities responded in an abundance of caution. The aircraft was cleared and returned to the gate for inspection," spokeswoman Paula Acevedo told The Post.

The Federal Aviation Administration tweeted that the plane experienced a "radio issue" and that the incident will be investigated.