A Rutgers University professor who created a "politicizing Beyonce" course was taken to a New York City hospital for a psychiatric evaluation after campus police said he made threats to kill white people.

The NYPD said that officers took Kevin Allred to Bellevue Hospital for evaluation after being contacted by the Rutgers Police Department about the threats. He was subsequently released.

A spokesman for Rutgers said that campus police responded to a student's complaint.

Allred, who has been prolific on Twitter since President-elect Donald Trump won the race for the White House earlier this week, said that he was forced to go to the hospital because of rhetorical political statements, not threats.

"even the doctors thought it was ridiculous to take me to a psychiatric hospital and force me evaluation," he said in one tweet. "it was f---ing intimidation." (All quotes are presented in their original form, without correcting for capitalization or typos.)

One tweet posted on Tuesday showed an American flag being ignited. In another, he said "will the 2nd amendment be as cool when i buy a gun and start shooting atrandom white people or no...?"

Allred added that Rutgers police had told him they were unable to contact him but he had no missed calls or emails from the department.

He also tweeted that students should all participate in a walk-out planned for Rutgers' New Brunswick campus in opposition of Trump's election. Similar demonstrations were held across the country.

Allred didn't respond to NBC 4 New York's requests for further comment.