A public defender said the shooting was an “accident,” but authorities said she had fantasized about shooting people.