The most likely interpretation is **the doctor was late**.

Reason: in English, the pronoun **“he”** usually refers to the most recent grammatically suitable male noun, which here is **“the doctor.”** But the sentence is **ambiguous** in principle, so it could be taken as referring to either the doctor or the nurse depending on context.
