Man who set sheriff's deputy on fire pleads guilty