NEWTON -- A farmhand who raped a 13-year-old girl in Sparta in June 2014 was sentenced Friday to three years in prison, New Jersey Herald reported.

Adrian Bautista, now 26, was working on the farm when he came into a barn where the girl was doing chores and forced her to participate in sexual activities with him, The Star-Ledger previously reported.

The girl called an adult family member who came to help her, police said at the time. Bautista ran off when he heard police were coming but was located about a mile-and-a-half away on a residential street.

As part of a plea deal, Bautista admitted this past November to sexually assaulting the girl in exchange for the prosecutor's office dropping the child endangerment charge, New Jersey Herald reported last year.

Bautista must serve 85 percent of his sentence before he's eligible for parole and will be held for deportation by the U.S. Immigration Office after his release, the newspaper reported.

Bautista, who was living in the United State illegally at the time of the attack, had a federal no-bail detainer leveled against him by Immigration and Customs Enforcement since his arrest in 2014.

Justin Zaremba may be reached at jzaremba@njadvancemedia.com. Follow him on Twitter @JustinZarembaNJ. Find NJ.com on Facebook.