On a generalized Chu-Vandermonde identity