MINNEAPOLIS (AP) — A Minneapolis man who's charged with tweeting threats against FBI agents and a judge after his friend was arrested on a terrorism charge has pleaded not guilty to a new three-count indictment and will remain jailed pending trial.

Nineteen-year-old Khaalid Adam Abdulkadir  was indicted earlier this week by a federal grand jury. He entered his plea Thursday in U.S. District Court in Minneapolis.

Authorities allege Abdulkadir posted threatening tweets after his friend was arrested Dec. 9.

Abdulkadir's attorney said authorities haven't been specific about whom Abdulkadir allegedly threatened. Attorney Chris Madel also says the indictment should be dismissed and his client should be released.

A federal judge from South Dakota is overseeing the case. Judge Karen Schreier says Abdulkadir is a danger and will remain in custody.