Dog saves girl from rattlesnake, loses eye