Analysis of dynamics of excitation and dephasing of plasmon resonance modes in nanoparticles