Klystron instability of a relativistic electron beam in a bunch compressor