A 37-year-old man has been arrested after he allegedly threatened people at Little Bay Beach, in Sydney's east.