Edgar Mendoza, a citizen of Guatemala, has been charged with sexually assaulting a six-year-old girl in New Jersey

A 32-year-old undocumented immigrant was charged with sexually assaulting a six-year-old girl after her father found the stranger in bed with her in the middle of the night, police say.

Edgar Mendoza, a citizen of Guatemala, allegedly broke into a home early Tuesday morning on Bayard Street in the Chambersburg section of Trenton, New Jersey, The Trentonian reported.

Police say in the affidavit that the child's father noticed that a light had been turned off upstairs and went to investigate.

The concerned father walked into his daughter's room to find Mendoza in her bed, authorities say.

Mendoza leaped up and then jumped from a second-floor window and fled on foot into the neighborhood, police say.

The incident happened Tuesday morning on Bayard Street (file above) in the Chambersburg section of Trenton, New Jersey. Police say the girl's father found Mendoza in her bed before he jumped out of a window and fled on foot. He was arrested a short time later

Police officers who responded to a 1.30am 911 call from the father searched the area and arrested Mendoza a short time later.

Mendoza has been charged three counts of aggravated sex assault, endangering the welfare of a child and burglary.

The child was taken to the hospital for treatment.

The Mercer County Prosecutor's Office will seek to detain Mendoza pending trial.

Mendoza has been charged three counts of aggravated sex assault, endangering the welfare of a child and burglary. The Mercer County Prosecutor's Office will seek to detain Mendoza pending trial and he is being held in the Mercer County Correction Center (file above)

Records show that Mendoza is currently the subject of a detainer from the U.S. Immigration and Customs Enforcement (ICE).

Mercer County Prosecutor's Office spokeswoman Casey DeBlasio confirmed that Mendoza is in the U.S. illegally.

Last year, Trenton police charged Mendoza for peeping into a home, but the status of that case is unknown.