It’s ambiguous. “He” could refer to either the doctor or the (male) nurse. Many readers default to the subject (“the doctor”) due to a subject-bias in pronoun resolution, but the sentence doesn’t settle it. To clarify, rewrite as “because the doctor was late” or “because the nurse was late.”
