Man who set deputy on fire pleads guilty