NEW YORK (CBSNewYork) — Police say a man tried to rape a teenager in Brooklyn.

It happened around 1 p.m. Sunday inside a building on Foster Avenue in Midwood.

READ MORE: 'Today, I Can Rejoice': New Yorkers Hit The Streets After Jury Finds Derek Chauvin Guilty In George Floyd's Death

Investigators say the man first exposed himself to a 14-year-old girl in a hallway.

Police are searching for a man accused of trying to rape a teenager in Brooklyn on Nov. 22, 2020. (Credit: NYPD Crime Stoppers)

When the teenager tried to run away, the man grabbed her and knocked her to the ground.

READ MORE: Activists Celebrate Conviction Of Derek Chauvin In George Floyd's Death, But Say Fight Is Not Over: 'Tomorrow, We Still Have To Dismantle Systemic Oppression'

She was able to fight him off, and he ran out of the building and rode off on a moped.

The girl was not physically injured.

Anyone who has information regarding this incident is asked to call the NYPD’s Crime Stoppers Hotline at 1-800-577-8477 or for Spanish, 1-888-577-4782. Tips can also be sent to the NYPDTips Twitter account or submitted online at NYPDCrimeStoppers.com.

MORE NEWS: Police: Gabriel Dewitt Wilson In Custody After Deadly Shooting At West Hempstead Stop & Shop

MORE FROM CBS NEW YORK