The incident happened Monday near Gates and Cypress Avenues in Ridgewood.
Police say the suspect followed a woman into her building around 8 a.m.
The suspect is accused of pushing a 37-year-old woman to the floor and trying to remove her clothes, according to authorities.
Police say the woman fought back and he ran off.
The suspect was believed to be about 20-30 years of age, but later Tuesday night, police said a 12-year-old boy was charged in the case.
He is facing charges of robbery, assault, sex abuse, criminal possession of a weapon and menacing.
RELATED | Shootings spike: Yet another gun violence death in NYC as surge persists
* More Queens news
* Send us a news tip
* Download the abc7NY app for breaking news alerts