A lot of proctoring software will flag you for that as well. Then when the professor reviews the footage it will be obvious that you're talking to someone off screen.
Put your mic in another room then.
Do they analyze the noise floor or something? I guess you'd have to defeat that with a noise gate.