Man in critical condition due to accidental shooting