Four basic rules. One, two, and quite possibly number three were violated.
Sad.
1: Treat every gun as if it is loaded.
2: Never ever point a gun at someone or something you do not want to destroy.
3: Keep your finger off the trigger until ready to shoot.
4: Know what is behind your target and that it is safe to shoot in that direction.