"The area around Herat where the compound is located witnessed fighting today between the Taliban and government forces," a statement by the United Nations Assistance Mission in Afghanistan (UNAMA) said.
It added the U.N. is urgently seeking to establish a full picture about the attack and is in contact with the relevant parties.
It was not immediately clear who attacked the compound.