LOWELL — A city man with pending assault and threats charges is accused of grabbing a woman’s buttocks at Lowell’s public library Wednesday afternoon.

In Lowell District Court, Cornelius Moore, 22, pleaded not guilty to charges of indecent assault and battery on a person 14 or older and disturbing a library. Judge Thomas Brennan ordered Moore held on $1,000 in the new case and revoked his bail — holding him without bail — on pending charges of larceny, assault and battery, threats and trespassing.

Prosecutor Jill MacDonald said at 4 p.m. Wednesday, Lowell police were responding to a report of an assault at Pollard Memorial Library when they were told that a “person of interest” was detained outside. The witnesses told police a 22-year-old woman ran out of the library yelling for people to “stop that man.”

The woman told police she was in the library and saw Moore, whom she didn’t know, staring at her. He walked toward her, walked close and grabbed her buttocks with his hands as he walked past, MacDonald said.

Moore allegedly said he ran because he didn’t know why the woman was chasing him and he didn’t want to get into trouble.

Moore’s next court date is a pretrial conference on Oct. 29. If he posts bail, Moore is to stay away from the library.

In July, Michael Crosby, 40, of Tewksbury, was charged with sexual conduct for a fee after he allegedly posted an ad on Craigslist offering to perform sex for a fee in the bathroom of the Tewksbury Public Library. Crosby admitted to sufficient facts in Lowell District Court. His case was continued without a finding for two years while he is on probation.

Follow Lisa Redmond on Tout and Twitter@lredmond13_lisa.