This happened to me one time and I think its the males way of saying that I dont want to breed..... I had a female and she layed eggs about three times and the male didnt seem to interested....then the fourth time she layed eggs he began attacking her and as he was able to chase her away he would turn and attack and eat the eggs.....