X-ray emission from the ultracool dwarf LHS 2065