One article said he was a combat veteran in Iraq, so it’s not too far-fetched to imagine that he might have had some passing familiarity with the government’s definition of an imminent threat.
Still, that doesn’t rule out mental illness, or just plain cussedness, as far as I can tell.