FARMINGTON — An Ontario teenager who led police on a high-speed chase pleaded guilty to aggravated assault, passing a roadblock and criminal mischief in Maine before being returned to Canada.

A judge imposed a 30-day sentence on the 16-year-old boy Friday, giving him credit for time already served since his Oct. 15 arrest.

Judge Nancy Carlson told the teen she hopes he gets help and gets his act together.

“I don’t know what you were thinking. Thank God no one was killed,” Carlson said.

The Sun Journal reported that after the court appearance on Friday that the boy was returned to Canada, where he faces additional criminal charges.

Police said the teenager and a 13-year-old girl sped through a border crossing. They were eventually arrested in Kingsfield after abandoning a stolen pickup and jumping into a river.

At one point, the teenager rammed a law enforcement vehicle, prompting a federal agent to fire at the truck. One of the bullets lodged in the driver’s side headrest, officials said.

The boy was identified in court proceedings but The Associated Press is withholding his identity because he’s a juvenile.

The boy from Eganville, Ontario, and the girl from Pembroke, Ontario, started the crime spree when they stole a car that was abandoned in Sherbrooke, Quebec, authorities said. They stole a truck that they used to cross the border into Maine and later stole a second pickup in Maine, officials said.