On the cusp of trial, Diego Carmona pleaded guilty to raping a girl in Freemansburg

A Freemansburg man who raped a 13-year-old girl will serve four to 10 years in state prison under a plea bargain.

Diego Carmona, 33, was sentenced Wednesday by Northampton County Judge Paula Roscioli after previously pleading guilty to involuntary deviate sexual intercourse, a felony that will require him to register for the rest of his life as a sex offender.

On the cusp of trial in November, Carmona admitted to forcing the girl to perform oral sex on him in 2013.

The abuse was witnessed by the girl's brother, who later disclosed it to another family member, prosecutors said.

The plea deal came as authorities withdrew a slew of other charges alleging a pattern of sexual assaults that stretched more than 21/2 years, beginning in December 2010.

Assistant District Attorney Patricia Broscius said the agreement was acceptable to the girl and her family and spared them from having to testify before a jury.