Ex-teacher accused of making bomb, using students for help