Tears were running down my face as I read your heartbreaking story.
Yes, you could've kept him on the leash. But he could just as easily have broken into a run, yanking the leash from your hand. The woulda-coulda thoughts won't change anything & will only serve to fester.
Sometimes, things just happen. The stars line up wrong & something bad happens.
Give yourself some time to heal.