A top official for the Boy Scouts of America is apologizing for the "political rhetoric" in President Trump's speech he made to thousands of scouts this week.

"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. That was never our intent," Michael Surbaugh, chief scout executive, said in a statement Thursday.

Surbaugh said the organization invites the president to every jamboree it has had since 1937.

"It is in no way an endorsement of any person, party or policies. For years, people have called upon us to take a position on political issues, and we have steadfastly remained non-partisan and refused to comment on political matters. We sincerely regret that politics were inserted into the Scouting program," he continued.

Trump was criticized for giving a political speech at the National Boy Scout Jamboree in West Virginia this week. The president joked that he would fire Health and Human Services Secretary Tom Price if the Senate couldn't pass an Obamacare repeal bill Tuesday.

Trump also criticized former President Barack Obama for never speaking at the event in person, though Trump's predecessor recorded a message for the organization's 100-year anniversary in 2010.