A woman was accidentally shot and killed Thursday in Texas by a rookie Arlington police officer whose bullets were intended for her loose dog, the police said, an episode caught on the officer’s body camera.

The victim of the shooting, which happened around 5:20 p.m. near a shopping center in the Dallas suburb, was identified by the Tarrant County medical examiner as Margarita Brooks. The 30-year-old, known as Maggie, appeared to be homeless, people in the neighborhood said, according to The Associated Press.

The officer, whose name has not been released and had just completed field training on July 1, had responded to a 911 call about an unresponsive woman in the grass of a commercial area.

The body camera footage, which captured part of the fatal episode, was released Friday by the Arlington Police Department.