man charged after accidental gun discharge