A teacher and his son are facing charges over a prank that police say was designed to terrorize and panic those who were attending a high school graduation.

Bryan Bolding, 46, works at the Fountain Valley School in El Paso County. His 16-year-old son attends the same school.

On Tuesday, deputies cleared out the school after finding a device in the cafeteria. It was later determined to be a smoke bomb.

Bolding admitted he and his son built the smoke bomb. According to deputies, the plan was to detonate the bomb during the upcoming graduation as a prank.

Bolding's son, who is not being identified, also admitted to police that they tested the device in a gym parking lot on Monday night. Police were also called to that location.

Both now face several charges.

The school has also told Bolding his contract will not be renewed.