Recently, Chang and Xu gave a probabilistic proof of a combinatorial identity which involves binomial coefficients. Duarte and Guedes de Oliveira (J Integer Seq 16, 2013) extended the result. Applying a generalization of the Leibniz rule for higher derivatives of the product of functions yields a new short proof and a generalization of the above mentioned identity.