Oh, carole, don't feel bad! If she was sick and suffering, then being put to sleep was likely a merciful end. She had fleas that were visible from where you were standing, and that's gotta be painful. And if she wasn't put to sleep, if she is inside somewhere getting care, that's also a better outcome than just doing nothing would have been.
You did nothing wrong.