I don't know how old your son is but can you make that coop with your male off limits? The male is testing you. When they are young some will do that. If he continues then it may be time to re-home him.Honestly, my rooster is a tough guy. He only lets me feed, pet him, pick him up, etc. I have a toddler & he’s attacked him twice already & me once actually.
with that, I was kind of planning on keeping him separated more so for my son. He loves going to the coops & he couldn’t of the rooster was in the same coop.