Get Your Dog Care Questions Answered by Experts
It is often hard to contor a male dog when an in heat female is around.
Try seperating them either by a gate or placing them in seperate rooms.
You can also try using rescue remedy(all natural calming agent) most pet stores and natural food store carry this.
Since it seems you are trying to keep them apart I am assuming you do not intend to breed if that is the case I highly recommand for the health of your pets to have them spayed and neutered
Try the rescue remedy it should be strong enough to calm him down. this product is great I use it on my own pets during thunderstorms.
If this does not work I recommand contacting your vet to see if they will give you a mild seditive.