Brazil's Culture Secretary Roberto Alvim was sacked on Friday after posting a video in which he appeared to copy a speech by Nazi propaganda chief Joseph Goebbels.

The video, released on Thursday announcing national prizes to revitalize the arts in Brazil, quickly went viral, attracting outrage due to its at times word-for-word similarity to Goebbels' speech.

In a statement, President Jair Bolsonaro said Alvim's position had become untenable following his "unfortunate remarks."

"I reiterate our rejection of totalitarian and genocidal ideologies," Bolsonaro said, adding his government's unconditional support for the Jewish community.

In the video, Alvim, a theater director appointed last year by Bolsonaro, announced the prize as music played in the background from a Wagner opera, Hitler's favorite music.

"Brazilian art of the next decade will be heroic and it will be national ... and imperative because it will be rooted in the urgent aspirations of our people, or it will be nothing," he said in the video.

Goebbels, Hitler's notorious ideologue, told theater directors during the Nazi regime that: "German art of the next decade will be heroic, will be wildly romantic, will be objective and free of sentimentality, will be national with great pathos and equally imperative and binding, or else it will be nothing."

Alvim apologized on Facebook for what he said was an "unintentional error."

"If I had known of the origin of the phrase I would never have used it," Alvim said, explaining the speech had been written based on ideas provided by his aides.