Scott McCreery got in some minor trouble at the airport.
The 23-year-old American Idol season 10 winner was cited for accidentally carrying a gun through Raleigh-Durham International Airport in North Carolina last week.
WATCH: EXCLUSIVE: Scotty McCreery Says His Girlfriend is 'The One,' Teases New Music
In a statement to ET, McCreery shared what happened that day, adding that he "learned a lesson" that he won't forget.
"I have been a concealed carry permit holder for awhile now after being robbed at gunpoint in 2014, and I take gun safety very seriously," he said. "While in between tour dates last week, I went to go target shooting with a friend a few days before an early flight out of my hometown Raleigh-Durham airport. Unfortunately, I did not realize that I left my pistol in my backpack until the TSA found it during the security X-ray screening and rightly confiscated it."
"I had my concealed carry permit on me so once they had checked everything out, they then released me to catch the next available flight," he continued. "Great to know our airport security force is on the job. I have learned a lesson that I won't forget."
WATCH: 'American Idol' Judges Get Nostalgic Over Show's Last Auditions Ever: 'What a Way to End'
According to TMZ, the country star was cited with a misdemeanor violation for the incident. In 2014, McCreery was the victim of a home invasion. According to reports, three suspects armed with guns forced their way into the apartment of some friends of McCreery and took wallets, cash and electronic gear. Police said nobody was injured during the incident.
For more on the McCreery, watch below.