Detection of X-ray Emission from a Bright Long-Period Radio Transient