The deputy probably did not stop the other purposeful students going into the school either.
Right.
But he recognized this miscreant, knew that he was trouble, knew he had made threats to shoot up the school, and even recommended involuntary commitment to a mental health unit.
But he did NOTHING to stop him from entering the building.