Police officer shot in training accident