A police officer in Virginia was fired after donating to a legal defense fund for Kenosha shooter Kyle Rittenhouse, officials said Tuesday.

Norfolk Police Lt. William Kelly anonymously gave $25 to a fundraiser for Rittenhouse in September, using his city email address, according to The Guardian.

The donation reportedly came with a comment that read: "God bless. Thank you for your courage. Keep your head up. You’ve done nothing wrong."

"Every rank and file police officer supports you," the message continued. "Don’t be discouraged by actions of the political class of law enforcement leadership."

UTAH REPORTER DELTES TWEET AFTER BACKLASH OVER TRACKING DOWN DONOR TO KYLE RITTENHOUSE DEFENSE FUND

Norfolk City Manager Chip Filer on Tuesday said he’d reviewed an internal investigation of the incident and determined that Kelly violated city and departmental policies, local outlet WAVY-TV reported.

"His egregious comments erode the trust between the Norfolk Police Department and those they are sworn to serve," Filer said in a statement Tuesday.

"The City of Norfolk has a standard of behavior for all employees, and we will hold staff accountable."

FILE - This Oct. 30, 2020 file photo provided by the Kenosha County Sheriff's Department shows Kyle Rittenhouse in Kenosha, Wis. Rittenhouse, an Illinois teenager charged in the slayings of two people during street protests in Kenosha, Wis., following the shooting of a Black man was expected to enter a plea in the case Tuesday, Jan. 5, 2021. (Kenosha County Sheriff's Department via AP File)

In his own statement, Police Chief Larry Boone said that the force doesn’t "want perceptions of any individual officer to undermine the relations between the Norfolk Police Department and the community."

Kelly was an 18-year veteran of the department and had been the executive officer of internal affairs for the last two months, the report said.

He can appeal the decision about his termination.

CLICK HERE TO GET THE FOX NEWS APP

Rittenhouse, 18, has been charged with murder and attempted murder for shooting and killing two people and wounding a third at a protest in Kenosha, Wisconsin on Aug. 25.

The teen, who has pleaded not guilty, has been free on $2 million bail donated by supporters since last November. His trial is expected to begin Nov. 1.

This story originally appeared in the New York Post.