Extended X-ray emission in the radio-loud galaxy 3C 382