Senior Iranian national security officials were in one building at the compound, and Khamenei was in a nearby building