The case highlights the challenge of preventing so-called lone-wolf attacks, when an attacker acts without outside help.