According to the Saudi Gazette, the incident occurred on Sunday afternoon.
The workers were treated on the spot by Saudi Red Crescent paramedics, Makkah Civil Defense Spokesman Maj. Naif Al-Shareef was quoted as saying.
The prefab offices were being used by managers of a contracting company.