The New York Times reported that the murderer, who committed suicide near the scene, had made statements on social media that he planned to avenge police killings of black men earlier that year in Ferguson, Mo.