Measurement of proton quenching in a plastic scintillator detector