Intelligent Agricultural Management Considering N$_2$O Emission and Climate Variability with Uncertainties