Well, as none of us know the horse or it's circumstances it's hard to judge, however I will make some assumptions and give you my view:
If he was having a paddy and throwing himself about due to bad manners this was endangering you. So the instructor was correct to remove you and take him herself. She presumably knows him and judged him to be naughty rather than in pain or fear. So she chose to correct his behaviour by pulling hard on the lead rope and shouting. I assume that he was then well behaved in your lesson as you don't say otherwise. If this is the case then her corrective behaviour was probably right.
Get up, get going, seize the day. Enjoy the sunshine, the rain, cloudy days, snowstorms, and thunder. Getting on your horse is always worth the effort.