Pairing instability in a nematic Fermi liquid