A luminous X-ray outburst from an intermediate-mass black hole in an off-centre star cluster