A Facebook post by the suspect Abdul Razak Ali Artan before the attack suggested he was angry over what he perceived as mistreatment of Muslims, but didn’t express loyalty to a specific group or ideology, according to people familiar with the case.