I know how you feel. It has happen to me before and you can't stop feeling bad even though you know you were trying to help.
I just said a prayer for that little dog and hope that he can find his way back home or somebody helps him to do so.
Don't feel bad, I know is easier to say than done, but you did what you could. hugs to you