Temperature dependence of the resistivity due to localized spin fluctuations