You did nothing wrong and you are a terific mom, don't let anyone tell you diffrent.. Jo and Junk have it right you did the right thing now you have to make sure your daughter knows she did nothing wrong to make him yell.. that it is not her fault and that mommys not mad at her.
And big hugs for you mom bravo on you momma bear!