The officer was taken to the hospital with non-life-threatening injuries