Diversity in a complex ecological network with two interaction types