That's incredibly sad. I don't think I would have put two and two together myself, and I was a detective in my former career. You were evidently focused on being a good, helpful friend/resource to him and he likely would have found a way to carry out his plans anyhow, regardless of your role.
I had an online friend struggling with chronic health issues who confided in me about his plans to end his life, saying his own mother even supported the decision. I found out she did, indeed, as his continued suffering was just too great. Even though I knew he'd made up his mind and there was nothing I could do, I felt like I was there for him in the best way. After his death, I received an email from his mother saying how much he'd talked about me. Sad. Anyway, sorry to rant. And sorry about Sam.