A man has died after being shot by police outside a hospital on the New South Wales mid-north coast. It's alleged the man pointed a gun at officers before he was shot.