Man shot in the groin, accused attacker charged