It's rude to throw a rock at someone's pet.
Josh is getting annoyed at his neighbor's dog for barking so much.
Josh wants the dog to stop barking.
Josh goes and knocks on the neighbor's door and asks him to calm the dog down.
Josh picks up a heavy rock and throws it at the dog the next time it barks.
The neighbor puts a shock collar on the dog, and the dog learns to stop barking.
Josh hits the dog hard, and the dog dies from the assault.