He didn't commit suicide..
Kenny felt too much guilt for treating Ben like shit, despite his reasons. He realized that Ben was just a scared kid in the zombie apocalypse, kind of like his son and he wanted to protect him.
This time, he didn't abandon Ben. He stayed with him in his final moments, who knows what he said to Ben before taking the shot. And he didn't do it until Ben begged him, "Kenny Please!"