When Fairfax County Sheriff’s Deputy Patrick McPartlin arrived at the scene, he approached with his gun drawn, and Gomez rushed him, holding up the post, which McPartlin said looked like a sword, according to the commonwealth’s attorney’s investigation.

As McPartlin backed away, he fired four shots, striking Gomez in the torso with three and grazing his arm with another.

Gomez' injuries were initially thought to be non-life-threatening, but he later died.

Hours earlier that hot day, a police officer called Fairfax County Fire and Rescue out of concern Gomez might be suffering from a psychological or medical condition, according to the commonwealth's attorney’s investigation.

“It was over 100 degrees that day, and Mr. Gomez was sweating heavily and had twitching under his eyes, which prompted the officer to call for rescue personnel,” Fairfax County Police Chief Ed Roessler said.

Upon his arrival at the hospital about 2:30 p.m., Gomez complained of unspecified pain and nausea. The officer stayed with Gomez at the hospital for a couple of hours until doctors cleared him to go, police said.

McPartlin, an 18-year veteran, had undergone crisis intervention team training, which help law enforcement officers handle incidents involving people with mental health issues, police said. He was placed on routine administrative leave.