(CNN) A Chicago man has been accused of threatening to kill people at a women's reproductive health clinic, federal prosecutors said.

Farhan Sheikh, 19, allegedly posted the threat this month on iFunny, a social media platform where users can post internet memes, according to a criminal complaint.

He was arrested Friday and charged with transmitting a threat in interstate commerce, federal prosecutors said.

US Magistrate Judge Susan E. Cox said at a hearing on Tuesday that Sheikh will be "detained as a danger to the community."

Cox said Sheikh is "inherently and deeply unstable."

Read More