BLACKSTONE, Va. -- It was the sound of rapid gunfire that punctured the air first. Then came the angry mob of protestors, their footsteps and chants growing louder and getting closer.

Next were the screams, the sirens and the smoke. A dire warning of an imminent attack blared over the speaker system and people came rushing out of buildings and running toward a safe house near the U.S. embassy. But inside, things were about to get much tougher.

BENGHAZI MASTERMIND SENTENCED TO 22 YEARS IN PRISON ON FEDERAL TERRORISM CHARGES

In an instant, the power was cut and the building went black. It started filling up with so much smoke that the people huddled inside were forced out. One by one, they fell to the floor, grabbed a hold of the pant leg of the person in front of them and crawled their way out. They ran to a second building but there were casualties there - bloody blown-off body parts were on the floor and people with varying degrees of injury were on stretchers. They worked together in small groups to help their wounded colleagues before running to a black helicopter waiting to take them to safety.

The entire exercise looked, sounded and felt like hell.

That was the point.

This particular practicum was the culmination of a 5-day course at the new Foreign Affairs Security Training Center (FASTC) in Blackstone, Va. The massive 1,350-acre compound was approved by Congress and built to provide comprehensive lifesaving security training to Department of State personnel and members of the foreign affairs community. Their spouses and children over the age of 18 are also allowed to attend.

"Training is the bedrock to protecting lives," Michael Evanoff, assistant secretary of state for diplomatic security, told Fox News. "If you are a trained foreign service officer and you go through the training we give you, you will be better prepared to react."

Constructed in three phases and fully operational in December, the FASTC hard skills training campus includes a rappel tower, a tactical maze, two smokehouses, an explosive demo range as well as a live-fire shoot house.

The facility also features two high-speed driving tracks and another that can be flooded with 96,000 gallons of water to give agents hands-on training to mastering rough road conditions. They are taught how to drive an armored SUV through a controlled skid as well as how to speed away from an ambush in reverse, ram vehicles out of the way and drive through just about every surface imaginable, including sand, mud, clay, gravel, over big rocks, over little rocks, up asphalt hills, down stairs and over logs. They are also taught how to detect surveillance, provide emergency medical care and root out improvised explosive devices.

But perhaps most impressive is the military operations in urban terrain simulator, also known as MOUT. Based on blueprints from existing embassies, FASTC created an entire town on its campus to put agents through rigorous training on how to respond to everything from a post-election protest in a foreign country to a security threat on the chaotic streets of New York City. Paid actors play townspeople, protestors, journalists and merchants to add to the drill's "real feel."

"The world is becoming more unstable, with increasing terrorist attacks worldwide, growing instability in government and rising discontent in economically disadvantaged countries," said Wendy Bashnan, deputy assistant secretary for training, adding that workers must be ready for anything and that FASTC training gets them there.

One senior officer, whose name has been withheld at the request of the State Department, told Fox that along with the hard skills training, students leave the course more confident in their ability to get out of an emergency situation safely.

"I don't care if you're in Luxembourg or Lahore, there's going to be a crisis and this prepares you for that," he said.

FASTC -- which will prepare 2,000 special agents to protect U.S. diplomats and citizens around the world and is expected to train another 10,000 people annually -- was built out of necessity.

There were too many attacks on too many U.S. embassies and consulates that left employees, agents and officials scrambling for their lives.

In the mid-1990s, the State Department began pushing for a more efficient, consolidated training facility for diplomatic security service agents. Prior to that, hard skills training was spread out in 11 different sites across the country, which resulted in disjointed training exercises as well as costly travel expenses and a dependency on contract facilities.

"New threats are constantly changing... We feel that we can't be stagnant. We have to be ahead of the curve." — Michael Evanoff, Assistant Secretary of State for Diplomatic Security

The critical need for a new, state-of-the-art facility was underscored by almost-simultaneous attacks on Aug. 7, 1998 at the U.S. embassies in Nairobi, Kenya, as well as in Dar es Salaam, the capital of neighboring Tanzania. In all, 224 people died and another 5,000 were wounded. Among those killed in Kenya were 12 U.S. citizens.

U.S. AFRICA EMBASSY BOMBING SUSPECT KILLED IN SOMALIA

During President George W. Bush's administration between 2001-2009, there were 20 fatal attacks on U.S.embassies that resulted in 87 deaths -- 24 of them were either U.S. embassy workers or U.S. civilians.

Then came the Sept. 11, 2012 attacks in Benghazi, Libya.

In that incident, a U.S. government compound in Benghazi was ambushed in a coordinated attack by the Islamic militant group Ansar al-Sharia. In the end, four Americans had been killed: Ambassador Christopher Stevens, U.S. Foreign Service Information Management Officer Sean Smith and CIA security contractors Glen Doherty and Tyrone Woods. Benghazi was among one of the worst tragedies and one of the hardest lessons the State Department has had to learn.

In fact, FASTC's "Fire as a Weapon" course is the direct result of Benghazi and teaches diplomatic staff how to respond to attacks on their compounds involving incendiary weapons and fires that are deliberately set.

"When a facility is attacked, they set fire to the facility," Evanoff told Fox. "We need to learn how to get out of it."

CLICK HERE FOR THE FOX NEWS APP

Evanoff also said the State Department has spent a lot of time understanding the science of compounds that have come under attack and said security procedures and training are always evolving. That's why the new training facility in Blackstone is vital for America's foreign service workers.

"New threats are constantly changing and we are constantly looking at the threat matrix," he said. "We feel that we can't be stagnant. We have to be ahead of the curve."