It's generally not recommended to forcefully separate a male dog from a female during mating. Doing so can injure both dogs, cause aggression, and create unnecessary stress.
If you have concerns about mating, contact your veterinarian immediately for safe management advice.