Generalized BSDE driven by a Lévy process