The TBS comedy program “Full Frontal With Samantha Bee” apologized on Thursday for broadcasting a segment in which a writer who has talked about his cancer diagnosis was mocked for having what the program called “Nazi hair.”

“Full Frontal,” a topical satire hosted by Ms. Bee, ran the segment on Wednesday. It featured Michael Rubens, a correspondent for the show, attending the Conservative Political Action Conference in February.

Talking about how the conference had changed over time, a narrator for the segment said, “Just last year, CPAC was dominated by Ted Cruz supporters and chirpy little [expletive] with bow ties.”

The narrator added: “This year, the bow ties were gone and replaced by Nazi hair. Nazi hair. Nazi hair.” Each time the phrase was spoken, an image was shown of conference attendees with short haircuts.