Laser electron accelerator in plasma with adiabatically attenuating density