MIAMI — Two F.B.I. agents were killed and three others injured as they were serving a warrant in South Florida on Tuesday morning in one of the deadliest shootings in the bureau’s history.
The F.B.I. said the incident occurred just after 6 a.m. as the agents descended on an apartment complex in the city of Sunrise, which is west of Fort Lauderdale. The agents were serving a warrant related to a case involving violent crimes against children.
Officials said the man being investigated, whose identity was not released, had apparently barricaded himself inside the complex and was found dead. It was unclear how he died.
Two wounded agents were transported to the hospital and were listed in stable condition, the F.B.I. said.
There was a heavy police presence around the Water Terrace apartment complex on Reflections Boulevard. The police asked commuters to avoid the area and residents to stay home. Officers from various police agencies swarmed the neighborhood.
A somber procession of dark law enforcement S.U.V.s and motorcycles with sirens and lights escorted an ambulance from the Broward Health hospital in Fort Lauderdale to the county medical examiner’s office.
The agents shot on Tuesday were the first who had been fatally shot in the line of duty since November 2008, when Special Agent Samuel S. Hicks, 33, was killed, according to the F.B.I. The agency keeps a list of agents who were killed or died in the line of duty.
Mr. Hicks was part of a team of agents executing an arrest warrant at a house near Pittsburgh that was connected to a drug trafficking ring, the bureau said.
The shooting on Tuesday was one of the worst in the history of the F.B.I.
In 1986, two agents were killed in Miami and five others wounded during the pursuit of two violent bank robbers who were also killed in the exchange. The gun battle at the Suniland Shopping Plaza in what is now the village of Pinecrest was the deadliest in F.B.I. history.
In November 1994, two agents were killed, a third agent was wounded and a 15-year-old boy was shot in the leg when a man came into the cold case squad room of the Washington, D.C., Police Headquarters and opened fire with an assault rifle, according to the F.B.I.
A police detective was also killed during the shooting. The gunman, a suspect in a triple killing a month earlier, had left notes saying he planned to kill members of the local police homicide unit, the F.B.I. said.
Johnny Diaz reported from Miami, and Adam Goldman from Washington. Patricia Mazzei contributed reporting from Miami, and Maria Cramer from Maplewood, N.J.