St. Marys man injured in accidental shooting