Police cannot shoot you (legally) for carrying, now whether they follow the law is a different matter
They just claim they feared for their life and now they’re declared not guilty. There is no specific law saying they can just shoot you for having a gun, but there’s plenty of other laws, precedents etc. making it absolutely legal for them to shoot you for having a gun.