Higher-order resonant modes in a photonic heterostructure nanocavity