Generalization of a binomial identity of Simons