The man was taken into custody after he made violent threats to security staff at an apartment building and people outside