While much remains unknown about both deadly incidents, they highlight the increased role of people with military experience in ideologically driven attacks.