Through a combination of Complacency, Strategy and Luck.
First the Complacency. This was on the part of the US Air Force, and joint allied forces. The routes used by the F-117s during the shoot down had been flown previously multiple times. This contrary to the F-117 operations in the 91 war where they flew into Baghdad, never repeating the same inbound track consecutively.
Perhaps this was due to over confidence in their equipment, and air superiority. During operation Allied Force, the NATO air campaign, it was standard operating procedure (SOP) for all strike missions to be accompanied by electronic warfare aircraft (Prowlers). These aircraft flew with strike missions to detect, jam, and destroy enemy radar installations. Because of these aircraft, it was difficult for the Yugoslavian anti air forces to operating their radars and get target quality tracks on even conventional military aircraft. Keep in mind, during the 78 days of Operation Allied Forces we flew 38,004 air sorties and lost only 2 aircraft to enemy fire[1]. The Prowlers were a big part of that unprecedented record.
Unfortunately on the day Vega-31 would be taken out of the sky, the Prowlers were grounded due to weather. The decision was made for the F-117s to fly their strike mission unsupported.
Worse yet, the Yugoslavian anti air forces knew that the Prowlers were grounded, and knew that the F-117s were going to fly a strike mission anyway. How did they know? Because the Serbs had spotters and human intelligence assets in Italy, where the strike missions were flying from. They had also compromised NATO communications in the area, and had civilian source in Italy feeding them intelligence who had access to operational information. In short, the NATO forces had a massive failure in operation security, OPSEC, that was feeding valuable data to the enemy. The Serbs knew the strike was coming, knew the general route, and knew the F-117s would be flying without electronic warfare support.
It is important to note that the F-117A is a very lean aircraft. It has no radar of its own. When flying for penetration all of its antenna are retracted. It had a single system that could function as a radar warning receiver, but the antennas are not exposed during a strike mission. As such it has no way of detecting search and track radar on its own. Simply put, operating alone, it is effectively blind.
Now lets discuss the Strategy.
The Serbs were leaning every available advantage they could to accomplish a shoot down of American aircraft. They knew war was not a popular option for the US civilian population, and it was perceived that if they could shoot down some American aircraft, they could turn public opinion against the air war. A particularly valued prize would of course be one of the coveted “Stealth Fighters”. As such, they worked diligently to set up anti-air ambushes for NATO aircraft, particularly hunting for the F-117As. How did they do this?
For these ambushes they employed two radar systems. First the P-18 “Spoon Rest D” early warning radar. This radar is a Soviet Union radar system that operates in the VHF frequency. Typical it can detect a fighter aircraft out to 200 nautical miles. The Serb’s discovered that by setting it to its absolute lowest frequency, and thus largest wavelength, they could detect the F-117As. However, at these settings the radar can not provide very good information on the F-117s, and the ‘early warning’ radar could only detect them within 15 miles. This is a very poor detection range indeed, however if you just so happen to know the route your enemy is flying, it is enough to let you know when they are getting within range of your other systems.
Even when the P-18 is operating at optimal performance (not at the absolutely lowest frequency) and against a conventional aircraft, it can still not produce a precision track of a quality to guide a weapon on anything more than a kilometer or so away. That is why these systems are considered ‘early warning’ radar. They are not meant to guide weapons. This brings us to the next system the Serbs used.
For their anti-aircraft weapon system, they had the S-125, or SA-3 Gao to NATO. The S-125 had three radar systems; The P-15 Flat Face, SNR-125 Low Blow and PRV-11 Side Net.
The P-15 was a C-band target acquisition radar. Nominally it had a detection range for a fighter aircraft out to 150 miles. Against the F-117s it was completely worthless. It could not detect them, even flying overhead.
The SNR-125 was the fire control radar, intended to guide the missiles onto their targets. This had two modes of operation for detecting aircraft, essential two different radar bands. Nominal it could detect and track a fighter aircraft between 25–50 miles out, depending on the mode of operation and conditions.
The PRV-11 was used as a ‘height finder’ to get an accurate read on a target’s altitude.
P-15 Radar
SNR-125 Radar
PRV-11 Radar
All these radars were paired with a quad missile launcher carrying the V-600 missile. A two stage solid fueled surface to air missile with a max range of about 15 miles and a minimum engagement range of a little more than a mile.
This SAM system is not usually considered a mobile missile system. But the Serbs had trained diligently, and by only arming their quad missile launchers with two missiles each they were able to relocate the missile system in 90 minutes. Doing so meant they could set up ambush positions with this missile system, and then take down and relocate. So if a route was flown one day and there was no missile systems detected in the area, the Serbs could be operating in that area just hours later.
The Serb had attempted to set up ambushes in this way for the F-117s two times previous to the actual shoot down. They would get an indication of a pending strike mission, and move their missile batteries into place to intercept the suspected routes. The P-18 would be able to detect the F-117As when they got within 15 miles, as was mentioned before. Even with the Prowlers flying, the P-18 did not register on their systems as a radar system when operating at their lowest frequency.
With the P-18 indicating the F-117s were in the area, they would time for a possible intercept and when they believed the F-117s were close enough, activate the SNR-125 radar trained in the direction of the incoming F-117s. They limited the amount of time they kept the SNR-125s active due to the risk of being detected by the EW aircraft and then hit with Anti-Radar missiles. On both previous attempts the SNR-125 was unable to detect or track the F-117s. This brings us to the last bit.
Luck.
On the day of the shoot down, as has been mentioned, the Serbs got intelligence that the F-117s would be flying a strike mission without the support of the Prowlers. Being well drilled in setting up these ambushes, they positioned their S-125 missile system into position on the F-117s suspected approach.
The P-18 radar detected the F-117As when they were about 15 miles out. They Serbs activated their SNR-125 radar and detected…… nothing. Looks like they were going to miss out again.
Except for the fact that they knew no Prowlers were in the air. That being the case, they decided to try again. They activated their SNR-125 radars another time.
Meanwhile, aboard Vega-31 the Air Force pilot was preparing to drop his ordnance. His weapon bay doors opened, exposing his very radar reflective bomb bay interior.
The SNR-125 radar detected the F-117A five miles distant. We should point out that this strike mission had 3 F-117s in it, and they only were able to target one of them. This reinforces the fact that they were ONLY able to do so because at that time Vega-31s weapons bays were open.
(Pictured above, a very stealthy aircraft’s not so stealthy weapons bay)
The Serbs fired at least 2 missiles at Vega-31. The F-117A had no indication it was being painted by a targeting radar, but the pilot did visually acquire two missiles that were launched against him. The first missile flew right by the aircraft, passing it overhead. A close miss. The missiles passing buffeted the stealth fighter but it did not detonate, its proximity trigger likely not detecting the F-117 to initiate detonation. The second missile that approached also failed to hit the F-117 but it DID detonate in close proximity.
The F-117 took blast and fragment damage. Flight control was lost, and the pilot was forced to eject.
Complacency, Strategy and Luck.
EDIT
Some one in the comments asked what had happened to the pilot, I figured I would pull my answer up from the comments in case others where curious….
After ejecting the pilot was able to transmit the following message; “Mayday, mayday, mayday, I am Vega 31, on the way down.” While hanging from the silk with his emergency radio. Using his survival radio he sent position reports as he evaded capture from Serbian forces in the area. Air Force Special Operations forces were dispatched in two MH-53 pave low helicopters and one MH-60 pave hawk. A-10 Thunderbolt II aircraft came on scene to take control of the rescue space, providing spotting and support. KC-135 tanker aircraft were also sent in support of the rescue operation to keep assets on station. Three hours after the shoot down the downed pilot made radio contact with the A-10 pilot. Visibility was poor and there was some concern that the pilot may be under duress and leading the rescue forces into an ambush, but the decision was made to commit. The rescue was almost called off due to low visibility and the pilots emergency IR strobe not functioning. Luckily he had a hand held GPS he used to call in his position as they approached, and a small pen flare he lit up for them to spot him. The helicopters came in, located the pilot and got him out. After 7 hours on the ground the pilot was picked up by the Air Force PJs and evacuated, no casualties. Probably the longest 7 hours of that pilots life.