The attacker was suspected of trying to join ISIS previously.