Skjutne pojkens tidigare lärare har befarat att några av hans elever skulle dras in i våldsvågen.