A Pennsylvania man was stopped by TSA officers at Atlantic City International Airport Tuesday night after an officer at an X-ray machine spotted a loaded gun in the man’s carry-on bag.

TSA contacted the New Jersey State Police, who confiscated the .25 caliber handgun, loaded with six rounds, and arrested the man on a state weapons charge, TSA spokeswoman Lisa Farbstein said.

There was no impact to airport operations, Farbstein said. The name of the man, from Media, Pa., was not released by the TSA. He was originally ticketed to fly to Fort Lauderdale, Fla.

A second man, also ticketed to fly to Fort Lauderdale, was arrested after the TSA officer checking identification and boarding passes found that he did not have the proper personal identification to get past the checkpoint, Farbstein said.

State Police were also notified, she said, and a check on the Atlantic City resident revealed he had several outstanding state warrants.

Weapons, including guns, are not permitted in carry-on baggage, the TSA said.

Travelers can be fined up to $11,000 if they are caught with banned items at the airport, and in 2012 more than $1.8 million in fines were assessed for firearms discovered in passenger carry-on bags.