Los Angeles Airport Police confirms Henrie was booked into the LAPD Pacific Division Jail
5th Annual Red Carpet Safety Awareness Event - Arrivals
Credit: Tara Ziemba/Getty

David Henrie, who played Selena Gomez‘s on-screen brother in The Wizards of Waverly Place, has been arrested, PEOPLE confirms.

A public information officer with the Los Angeles Airport Police tells PEOPLE that Henrie, 29, “was arrested at 9:05 a.m. for possession of a loaded handgun at Terminal 2 at LAX.”

“He has been booked into the LAPD Pacific Division Jail and will be released on his own recognizance,” the officer adds.

According to TMZ, which broke the news, Henrie was carrying a loaded M&P Shield 9mm pistol.

A rep for Henrie did not immediately respond to PEOPLE’s request for comment.

Henrie later spoke out about the incident on Twitter writing, “I take responsibility for the situation at LAX today. I unintentionally brought 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 an embarrassed that this even happened. But I am thankful to the TSA, LAPD and all involved today for their kindness and their professionalism during this process.”

The news comes just days after Henrie, who also appeared on How I Met Your Mother, announced that he and his wife, former Miss Delaware Maria Cahill Henrie, are expecting their first child, a baby girl.

Sharing a video of the sex reveal, Henrie captioned the post: “ITS A GIRL ITS A GIRL ITS A GIRL. Im a Poppa!!!!!!! Im so overwhelmed with joy I had to share this with you guys. I’m already singing ‘I Loved Her First.’ ”

“That reminds me. Where’s my shotgun? I don’t have a shotgun. Someone get me a shotgun!” he joked, adding, “I can’t wait to sit her down on a couch and tell her a 9 season story of How I Met Your Mother.

The shotgun mention was later removed.

Following his Old Hollywood-inspired wedding in Southern California last year, the actor told PEOPLE exclusively, “You always hear you should marry your best friend, and I actually get to do it. You don’t meet girls like her every day.”

Cahill told PEOPLE of her new husband, “One of my favorite things about him is how funny he is and how we just get each other. Being married is going to be just that much better.”