His social media posts indicate a man who criticized the president and Republicans, but investigators don’t know what set him off.