MINNEAPOLIS (WCCO/AP) – A Waseca teen who took a plea deal after being accused of plotting a mass killing at his high school will not return home.

John LaDue, 19, must be released from jail Thursday because he reached the limit for his conviction of having an explosive device.

The judge in this case agreed last week to release him under his parent’s supervision, at least until they could find a bed in a state run treatment center where he is supposed to serve out his probation. But on Wednesday, the state Department of Human Services was able to find a bed just hours before LaDue was set to walk out of jail.

It’s not clear where LaDue will be going for treatment.

LaDue was arrested in April of 2014 when police found him in a storage unit with bomb-making materials in Waseca. He was 17.

He was sentenced in October to 10 years of probation and an unspecified amount of time in a treatment facility as part of a plea deal.

(TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved.This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)