It sounds like H2S( hydrogen sulfide gas ) formed as the rice decayed in stagnant water.The stench was likely H2S ,commonly called sewer gas and the black deposits are likely metal sulfides which occur as the H2S oxidizes. H2S is toxic to living things inlcuding you, as it is neutral (ie caries no negative or positive charge) and readily passes through cell membranes.
Here's how it happens. Faculative heterotrophic bacteria colonize the rice .
As heterotrophs they can not produce organic carbon ,as autotrophs can via photosynthesis, which is why we dose it to culture them.
Faculative means they respire free oxygen during the nitrification process ( ammonia > nitrite > nitrate. When the free oxygen is used up , as in a hypoxic area they respire the oxygen from NO3.
When the NO3( nitrate )is gone,the water is anoxic( no oxygen and no nitrate) . At this point sulfate(SO4) reducing bacteria will start taking the oxygen from SO4. Seawater and your tank water contains about 2.700ppm of sulfate. The sulfate reduction results in several by products including H2S( hydrogen sulfide) which is the one to be concerned about. The H2s diffuses throughout the water . As it hits oxic areas some of it combines with metals leaving sulfite deposits( probably the black stuff in your sump). It also forms elemental sulfur and some sulfite and sulfate.H2s will last a few a hours to a day before it is completely oxidized. The process can be quickened with some gfo as the iron can catalyze the oxidation process.