A minor merger scenario for the ultraluminous X-ray source ESO 243-49 HLX-1