The military ties of the man who carried out an attack in New Orleans on New Year’s and another who died in an explosion in Las Vegas the same day highlight the increased role of people with military experience in ideologically driven attacks, especially those that seek mass casualties.