A characterization of bounded symmetric domains of type IV