It doesn't justify death, but it certainly makes it less surprising and more understandable.
Imagine if a democrat went into the deep south and said "The confederacy was a stupid joke you should be ashamed of, it only existed for 4 years, get rid of the flag already." etc etc and posted it to social media while talking over people trying to engage in debate.
Then that would be an apples-to-apples comparison. Not an elected representative.