A former University of Pittsburgh student accused of threatening FBI agents was ordered detained Friday pending trial.

After a lengthy detention hearing in U.S. District Court, U.S. Magistrate Judge Richard Lanzillo ruled that Khaled Miah, 27, will remain in custody as a danger to the community and a flight risk.

Federal prosecutors had requested the detention after FBI agents arrested Mr. Miah on Wednesday.

The FBI said Mr. Miah holds Islamic extremist views and had been watching FBI agents who were investigating him.

Advertise with us

Mr. Miah, a Bangladesh native who came to America in 2003, praised the 9/11 attacks and expressed admiration for the Boston Marathon bombers, going so far as to visit the scenes in Boston related to that case, according to an FBI affidavit.

Agents said he used a Twitter account to post threatening messages to Pittsburgh agents and at one point watched an agent's residence.

Mr. Miah is charged with interstate threatening communications, influencing a federal officer by threat and destruction of records.

An associate of Mr. Miah told agents that Mr. Miah is mentally unstable and "attracted to a violent Islamic ideology," the FBI said.

Mr. Miah had been a Pitt student until last month and was living in a house near the campus.