but if that person stands at the window completely nude or in front of a camera that is part of virtual classroom, then most likely that person will be charged with indecent exposure. Privacy rights do have limits. I won't be surprised if some new laws will be adopted if virtual learning is going to remain in effect.
I suspect that if this incident was in an actual classroom setting the student would either be expelled, suspended, or sent to detention for handling a weapon and the entire campus would be placed on lockdown. Since virtual detention rooms don't exist, the school officials went to the next level of discipline that was available to them.
I place a lot of blame on the parents in this situation for not informing their son not to display a weapon while on an open camera, but unfortunately the school officials have no power to discipline adults. If the virtual classroom is considered to be an extension of the campus, then it means that the campus rules must be followed.
Another consideration is what effect that this incident has over the remainder of the students in that class. If they know that the student isn't going to be held accountable, then the bad apples in the class will push the boundaries even further. Having the incident boil down to the school officials talk to the parents gives the student a free pass which sets a poor example for the classmates. Learning responsibility for inappropriate behavior is more important than the classroom lessons missed or the stigma associated with the suspension.