Extended Sugawara construction for the superalgebras SU(M+1|N+1). II. The third-order Casimir algebra