Poor little one. I would explain to her that this spider was dangerous and if it would bite her she could get very sick. And show her a picture of a safe spider and say now this is what the itsy bitsy spider looks like. And next time get her busy doing something else before you kill it She will be fine and someday you will tell her this story and you both will laugh. Take a deep breath the will be many more times you will feel this way. But you will get through it we all do.