Man tries to stab security guard