Fuel pump connector
From the factory - you'll have a three-wire set up on the tank side hooking into two wires. On my 2010 S - Red connects to Black/Blue, Brown connects to Black and Blue doesn't connect to anything. Looks likes maybe previous owner changed to two-wire connector.
KTM 990, 300XC-W, 500EXC