Police said the shooting happened due to an "accidental discharge," and the officer and the other victim were taken to VCU Medical Center for non-life-threatening injuries.