The agents shot Tuesday were the first to be fatally shot in the line of duty since Special Agent Samuel Hicks was killed in 2008, the New York Times reports.

SUNRISE, Fla. (AP/KDKA) — Two FBI agents were fatally shot and three wounded while trying to serve a search warrant in Florida on Tuesday, prompting a SWAT team to storm an apartment building where the suspect was holed up as neighbors huddled inside their homes. The suspect also ended up dead.

The confrontation in the Fort Lauderdale suburb of Sunrise marked one of the bloodiest days in FBI history in South Florida and among the deadliest nationally as well, according to the FBI website.

READ MORE: Mon Wharf Reopening For Parking On Monday

The FBI agents had come to the apartment complex to serve a federal search warrant in connection with a case involving child pornography and violent crimes against children, according to FBI Miami Special Agent Michael D. Leverock and FBI Agents Association President Brian O’Hare.

Two of the wounded agents were taken to hospitals to be treated and were in stable condition, Leverock said. The third did not require hospitalization, FBI Director Christopher A. Wray said in a statement.

The shooting happened around 6 a.m. in a middle-class neighborhood of single-family homes, duplexes and apartment buildings located west of Fort Lauderdale, near the Everglades.

Sunrise Police (L) block the street where two FBI agentry were killed and three others were injured in a shooting early February 2, 2021, as authorities were executing a warrant in Sunrise, Florida.. – Two FBI agents were shot dead and three were wounded on Tuesday while serving a search warrant on a suspect in a child pornography case, the FBI said. The suspect is also dead, the Federal Bureau of Investigation said in a statement. (Photo by CHANDAN KHANNA / AFP) (Photo by CHANDAN KHANNA/AFP via Getty Images)

The gunfire erupted with about four shots — “Boom, boom, boom, boom!” said Julius McLymont, whose house borders the Water Terrace apartment complex where the suspect was barricaded.

At first McLymont thought the gunfire was a car backfiring, then two minutes later he heard about five more shots. He went outside and looked over his fence as police cars and ambulances rushed in. Then he saw officers working on someone lying on the ground before they loaded the person into an ambulance.

A SWAT team appeared next, with officers donning riot gear. Then they went around the building, yelling, “Go, go, go!” McLymont said. He said he couldn’t see the apartment where the shooting happened from his location.

Hours later, Sunrise Police urged residents of Water Terrace to remain inside their homes while law enforcement blocked the entrances to their community.

Wray identified the two slain agents as Daniel Alfin and Laura Schwartzenberger, both of whom specialized in investigating crimes against children.

READ MORE: University of Pittsburgh Main Campus Shifts Into Lower-Risk Classification For The Coronavirus

There have been several other shootings throughout the FBI’s history in which two agents have died, according to the bureau’s Wall of Honor. The agents shot Tuesday were the first to be fatally shot in the line of duty since Special Agent Samuel Hicks was killed in 2008, the New York Times reports.

Christina Korbe pleaded guilty to shooting Hicks in Indiana Township during a pre-dawn drug raid at her home.

Prosecutors agreed to a 190-month sentence for her after dropping drug-trafficking conspiracy and weapons charges carrying a minimum 45-year prison sentence in return for Korbe’s plea to the firearms charge and voluntary manslaughter.

“Special Agent Alfin and Special Agent Schwartzenberger exemplified heroism today in defense of their country,” he said. “The FBI will always honor their ultimate sacrifice and will be forever grateful for their bravery.”

Schwartzenberger, 43, had been an agent with the FBI since December 2005 and worked in the Miami field office on a squad of agents handling violent crimes against children, according to court records. Her work primarily focused on tracking offenders who sexually exploit children online and investigating other crimes against children.

Alfin, 36, who also investigated child exploitation cases, had previously worked at FBI headquarters handling major cases involving violent crimes against children, according to court records. He had a degree in information technology and went through the FBI’s specialized training programs for cybercrimes. He was involved in a major child exploitation investigation dubbed Playpen that resulted in arrests around the world.

After the shootings Tuesday, police motorcycles with their lights flashing escorted a fire rescue truck as it brought the body of one of the agents to the medical examiner’s office in nearby Dania Beach. Law enforcement officials from numerous agencies lined up to pay their respects as a flag-covered body was removed from the vehicle and taken inside.

Alex Piquero, a University of Miami sociology professor who has specialized in criminology, said serving search warrants at a person’s home is incredibly hazardous for law enforcement officers.

“Serving warrants, next to domestic dispute calls and high-speed chases, are among the most dangerous for law enforcement — they don’t know what awaits them on the inside,” Piquero said.

MORE NEWS: Baldwin High School Students Raise Thousands Of Dollars Through Polar Pop Event For Special Olympics Of Pennsylvania

(Copyright 2021 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed without permission.)