Double ionization of beryllium-like ions by high-energy photons