The suspect is believed to be Robert Card, a 20-year US Army veteran from Bowdoin Center, Maine.
(according to Telegrams so take with grain of salt)
EDIT: Name confirmed by news.
According to law enforcement, CARD recently reported mental health issues to include hearing voices and threats to shoot up the National Guard Base in Saco, ME.
Yeah all states have some form, and Maine is one of the more (relatively) sensible ones.
https://en.wikipedia.org/wiki/Castle_doctrine?wprov=sfti1#State-by-state_positions_in_the_United_States