Birkhoff theorem and conformal Killing-Yano tensors