Ermakov then tried to stab Anastasia , failed , and said he killed her by shooting her head . Ermakov then struggled with Anastasia , failed to stab her , and said he killed her , too , with a shot to the head .