The Dallas sniper was sent home from Afghanistan after sexual harassment allegations and was following militant groups on social media.