The horse was feeling his oats, the stormy weather contributed to that, & he was playing. If you watch two horses being rambunctious, running at pasture, they'll kick out at each other like yours did at you, but it's NOT in the spirit of disrespect, it's play.
There's a famous video on youtube of a white horse playing with a girl, following her over jumps at liberty, & at one point he kicked at her while passing by her (& it did make contact with her head.) He was not disrespecting her, either, he was playing in the way horses play.
What you do is understand that the heels often go up when the horse is playing, & you never allow yourself to be in the vulnerable position of being within kicking distance; that's YOUR responsibility.
Reprimanding the horse for "disrespect" here is going to confuse the horse, who'll then have a hard time respecting you as his leader (a good leader understands horses), THEN you'll have a respect issue, but it'll be your fault.