Open this photo in gallery:

Bruce McAllister, the moderator of Premier Danielle Smith’s Alberta Next panel, is apologizing after he told a teen at a town hall that his parents should spank him.HO/The Canadian Press

The moderator of Premier Danielle Smith’s Alberta Next panel apologized Tuesday for telling a teen at a town hall that his parents should spank him.

Bruce McAllister, executive director of the premier’s office, said the comment was “inappropriate.”

“I regret saying it and I apologize,” McAllister wrote in a social media post.

“I’m committed to ensuring these conversations remain respectful and constructive.”

The apology came after the 16-year-old boy tried to ask the panel during Monday’s town hall in Calgary about the pending provincewide teachers’ strike. McAllister cut off the microphone.

The boy could still be heard trying to ask his question, but McAllister interrupted.

“I applaud you coming here to speak. I don’t applaud how you’re trying to speak,” McAllister said. “It’s not making any sense.”

“I know you’d love some chaos, but your parents should turn you over your knee.”

The quip was met with some boos from the crowd, and a woman behind the boy in line yelled that it was a “rude” thing for McAllister to say.

“That is disgraceful,” said the woman.

“You’re dismissing a teenager!” yelled another person in the crowd.

Premier Smith’s Alberta Next panel closes out cross-province tour as tempers flare in Calgary town hall

Opposition NDP Leader Naheed Nenshi said an apology isn’t enough from McAllister.

“This is not a one-off – all summer he’s been silencing, belittling and insulting Albertans he disagrees with,” said Nenshi.

“Danielle Smith must make things right with the young student, starting with an apology of her own, and she needs to fire her second most senior official for his reprehensible conduct.”

McAllister is a former broadcaster and legislature member of the Wildrose Party. In 2014, he and Smith crossed the floor to join the governing Progressive Conservatives. He lost his seat the following year.

Clips of his spanking comment have been shared widely on social media, drawing criticism and condemnation.