Man critically injured in deputy-involved shooting