Suicide is a selfish act, but if he was clinically depressed to such a point where he physically killed himself, I don't believe he would have been thinking rationally about what it would do and how it would affect anyone else. I guess it eats away inside of you until you just snap.
I've not been through depression, but I have family members who have been multiple times, and they've tried to commit suicide too, so I know how it feels on the other side, but I know their rationale isn't fully there, it's like it's being suppressed and something else is just taking over their mind. I don't fully understand, and I doubt unless people have been close to such a point where they want to kill themselves, they will understand either, so it's hard to say whether the intent was selfish.