NPR has terminated its contract with Juan Williams, one of its senior news analysts, after he made comments about Muslims on the Fox News Channel.

NPR said in a statement that it gave Mr. Williams notice of his termination on Wednesday night.

The move came after Mr. Williams, who is also a Fox News political analyst, appeared on the “The O’Reilly Factor” on Monday. On the show, the host, Bill O’Reilly, asked him to respond to the notion that the United States was facing a “Muslim dilemma.” Mr. O’Reilly said, “The cold truth is that in the world today jihad, aided and abetted by some Muslim nations, is the biggest threat on the planet.”