The episode is "The Rifle" (Season 3, Episode 21).
Little Joe is reluctant to learn shooting. After accidentally wounding Ben while cleaning a rifle, he's forced to practice. During an outlaw confrontation, he shoots from behind a fireplace, proving his skill and courage.