I can’t recall if it was locals guarding the compound or others.
There was a local militia who was supposed to guard the complex but apparently some were secret members of the attacking group.
However, I read one report by one of the militiamen who stood and fight, that they held out for a while (also taking an unknown number of casualties), before finally having to retreat.
We need much more documented information on this aspect of the defense of the Ambassador’s office and the other part of the complex, and by who.
Locals were guarding the compound.
40 plus years ago I learned to watch my local guards extremely carefully. When they didn’t show for duty or couldn’t be found I went to the best bunker on base with a portable radio and all the ammo I could put my hands on. After the third event the newbees were following my lead John Wayne syndrome or not.