I had a friend who's son, who I knew, died on their backyard swingset when it toppled over on him. Going to the funeral was one of the hardest things I ever did in my life. My relationship with my friend changed after this. The pain, for both of us, was just too much.
My deepest and heartfelt thoughts and prayers are with your friend and his family, including you, during this time.