NEW YORK (CBSNewYork) — Police on Wednesday arrested a man they say forced himself into a teenager’s bed in Brooklyn.

Investigators charged 38-year-old Isaac Hernandez with attempted rape after he allegedly snuck through a window at the 14-year-old girl’s 39th Street apartment in Borough Park early Tuesday.

READ MORE: Brian Laundrie: Who Is Gabby Petito's Fiancé, And What Do We Know About Him?

Police say Hernandez placed his hand over the girl’s mouth, prompting her to jump out of bed. The girl’s 10-year-old sister, asleep in the same room, screamed, alerting their parents.

READ MORE: Fighter Jet Intercepts Small Plane Flying Over NYC After Biden's UN Speech

Police told CBS2 the man was seen pulling up his pants as he fled through a window and left his underwear behind.

The girls were not hurt and nothing was taken, police said.

MORE NEWS: Coroner Confirms Remains Found Are Gabby Petito's, Says Manner Of Death Is A Homicide As Search Resumes For Brian Laundrie