Extended X-ray emission in radio galaxies: 3C 305