Curvature characterization of compact Hermitian symmetric spaces