Dynamics of resonant energy transfer in one-dimensional chain of Rydberg atoms