An airline pilot is being disciplined by the Transportation Security Administration (TSA) for posting video on YouTube pointing out what he believes are serious flaws in airport security.

The 50-year-old pilot, who lives outside Sacramento, asked that neither he nor his airline be identified. He has worked for the airline for more than a decade and was deputized by the TSA to carry a gun in the cockpit.

He is also a helicopter test pilot in the Army Reserve and flew missions for the United Nations in Macedonia.

Three days after he posted a series of six video clips recorded with a cell phone camera at San Francisco International Airport, four federal air marshals and two sheriff's deputies arrived at his house to confiscate his federally-issued firearm. The pilot recorded that event as well and provided all the video to News10.

At the same time as the federal marshals took the pilot's gun, a deputy sheriff asked him to surrender his state-issued permit to carry a concealed weapon.