Entangled-photon generation from a quantum dot in cavity QED