Union City police fatally shoot armed man