X-ray emission from the remarkable A-type star HR 8799