Four wanted in custody after terrorist attack