Compression Method for Deep Diagonal State Space Model Based on $H^2$ Optimal Reduction