I'm sorry that you had to see that, and feel like you were powerless to help.
You did what you could with the experience and supplies that you had. At least you didn't get in the way or just hang about and stare.
If you want to do something, then refresh yourself on your First Aid and CPR. Relearning the basics and the details will make you feel more confident.
And forgive yourself. Like I said, you did what you could with what you had.