David Henrie, an actor who starred in the Disney Channel show “Wizards of Waverly Place,” was arrested at Los Angeles International Airport Monday after he brought a loaded gun in his luggage.

>> Read more trending news

E! News reported that an LAX public information officer confirmed that the actor, who also starred in "How I Met Your Mother," was arrested for possession of a loaded handgun at Terminal 2.

TMZ reported that, according to unnamed law enforcement officials, Transportation Security Administration officers found the weapon at a TSA screening. It was an M&P Shield 9mm pistol, according to the website.

"I take responsibility for the situation at LAX today," Henrie wrote in a statement posted on Twitter Monday. "I unintentionally bought my legally owned gun which is registered in my name to the airport. I am so sorry for any trouble it caused, but I am appreciative of TSA's efforts in implementing the safety laws that are in place to protect our beautiful country. More than anything I am humiliated and embarrassed that this even happened. But am thankful to the TSA, LAPD and all involved today for their kindness and their professionalism during this process."

Henrie was booked into the Los Angeles Police Department Pacific Division Jail and released on his own recognizance.