A police officer who fatally shot a 95-year-old woman with a stun gun will not go to jail but will instead serve his sentence in the community.