A Harrisonburg, VA, police officer was wounded while investigating an animal complaint Saturday.

The complaint involved a cow that had escaped from a local stockyard.

According to a press release from HPD, after the cow was injured during the process to corral it by individuals affiliated with the stockyard, officers with HPD became concerned about the potential threat to public safety the injured cow presented.

Police say in the process of euthanizing the injured animal, it charged at officers on the scene, hitting an officer. Master Police Officer Bradley Boyce was struck in the legs by one bullet from an officer’s firearm. Officials were then able to euthanize the cow, WSHV reports.