Charges in a tax fraud investigation officially have been dismissed after the Halifax County defendant died.

Steve Hardie Anderson, 67, a retired compliance supervisor for the Virginia Department of Taxation, was indicted on May 19 by a Richmond grand jury on felony charges of embezzling public funds and altering computer data for larceny. The charges including misappropriating nearly $1.3 million in taxpayer funds.

A hearing was scheduled in Richmond on Oct. 8, the day Anderson died.

The manner of death was ruled a suicide by a shotgun wound, Tracie Cooper, the Western District administrator for the Medical Examiner’s Office in Roanoke, told The Gazette on Tuesday afternoon.

The Office of the Attorney General was prosecuting the case in Richmond City Circuit Court. The offenses date back to 2013.

The charges carried a sentence of up to 25 years in prison, according to a news release from the Virginia Office of the Attorney General.

Assistant Attorney General Ayesha Meekins filed the motion for dismissal Oct. 29.

Defense attorney William Dinkin told the court on Oct. 8 — when Anderson did not appear for a hearing — that the defendant may have harmed himself, the motion filed in Richmond City Circuit Court states.

The motion said the commonwealth viewed the death certificate and asked the court to dismiss the pending charges.

“It was dismissed in open court,” Edward F. Jewett, the Richmond clerk of court, told The Gazette on Tuesday morning via email. The dismissal order was issued the same day as the motion.

The Virginia Office of the State Inspector General conducted a yearlong investigation after Virginia Tax performed an internal investigation and informed OSIG about the allegations involving Anderson and two Virginia Tax employees who are suspected to have given him access to Virginia Tax computer systems and confidential taxpayer accounts, the OSIG news release states.

The Office of the Attorney General declined to answer questions from The Gazette, instead referring queries to the Richmond City Circuit Court’s office.

“This was a complicated and serpentine investigation that reached a successful conclusion through the perseverance and thoroughness of our special agents here at OSIG and in collaboration with Virginia Tax and OAG staff,” State Inspector General Michael C. Westfall said in a statement earlier this year. “This is another example of the hard work that state agencies provide the citizens of the commonwealth.”

Anderson had repaid the commonwealth about $250,000, according to the OSIG news release.

Anderson served on the Halifax County School Board for eight years, according to his obituary. He also chaired the scholarship committee of the South Boston Rotary Club.