A model of jet quenching in ultrarelativistic heavy ion collisionsand high- pT hadron spectra at RHIC