Wait until you've recruited Bastila. By that point you should be levelled enough that the fight is a formality rather than a wall.
For the fight itself, bring a sword. Twitch is dangerously accurate with firearms, so closing the distance and taking him apart in melee denies him the range advantage he's built around. Ranged builds tend to lose that exchange.