The officer sustained "minor injuries" but it could have been "a whole lot worse," the sheriff's office said.