Facing an angry backlash from parents and former members, the chief executive of the Boy Scouts of America apologized on Thursday for political remarks made by President Trump at the organization’s National Jamboree this week.

In the speech, Mr. Trump crowed over his election victory, attacked the news media and criticized Hillary Clinton and former President Barack Obama.

Michael Surbaugh, the organization’s chief, said in a statement on Thursday that it was “never our intent” for the National Jamboree to become a venue for partisan political attacks.

“I want to extend my sincere apologies to those in our Scouting family who were offended by the political rhetoric that was inserted into the jamboree,” he wrote. He added, “We sincerely regret that politics were inserted into the Scouting program.”