The rambling nonsense he wrote, the depression that had been diagnosed and the stressor of his missus kicking him out the week before makes it quite obvious he was a sandwich or two short of a picnic.
World is full of folks just like him. Anyone of them is bound to go bonkers and do something like this or similar to go out in a blaze of glory. No matter what precautions are taking some will achieve their goal.