No charges will be filed against the police officer who fatally shot Korryn Gaines, the Baltimore County State’s Attorney announced Wednesday.

Gaines, 23, was shot and killed on Aug. 1 after police attempted to serve her with a bench warrant after she failed to appear in court.

Baltimore County State’s Attorney Scott Shellenberger told lawyers for Gaines’s family that his office will not pursue charges for the shooting. In a letter to the Baltimore County Police Department detailing the incident, Shellenberger wrote, “Based upon all of the circumstances, it is determined that this shooting was justified and the State will take no further action.”

The police officer, identified by Baltimore County police as Officer First Class Ruby, shot Gaines because he was “fearing for his safety,” Shellenberger wrote.

Gaines’s family filed a lawsuit last week, claiming Ruby shot her out of frustration, not fear, the Baltimore Sun reported.

Ruby fatally shot Gaines after she aimed a shotgun at him and threatened to kill him, police said. Gaines had barricaded herself in her apartment with her 5-year-old son, Kodi Gaines, who was also struck in the standoff. Kodi Gaines sustained non life-threatening injuries to his left cheek.

The confrontation went viral on Instagram through videos Gaines posted and shared on her Facebook page.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Mahita Gajanan at mahita.gajanan@time.com.