The man was identified as Seyoum Samuels, 18, of the 2900 block of NW 24th Court in Fort Lauderdale.

Sheriff investigators said Samuels was shot by several members of the agency's SWAT team who were part of an undercover sting aimed at arresting Samuels and his crew.

Three others were arrested at the scene and charged as accomplices.

According to officials, investigators with the Fort Lauderdale Police Department and the Sheriff's Office had been working together for several weeks tracking a gang of heavily armed robbers. The gang was known to use automatic assault weapons, including an AK-47 rifle, said Sheriff's Office spokesman Jim Leljedal.

Undercover deputies solicited gang members for an armed home invasion robbery at a fictitious drug house. The agents told crew members to meet them Tuesday night inside a warehouse near Nob Hill Road and McNab Road in Tamarac to work out a robbery plan, Leljedal said.

Once the group gathered inside the warehouse, SWAT members swooped in and ordered everyone to surrender, he said.

Samuels, who was wearing body armor, took cover behind a pile of tires and reached for a handgun in his waist band, said Leljedal. SWAT members shot him several times.

Samuels was taken to Broward General Medical Center, where he was pronounced dead.

Two men and a woman were charged as follows: Kemar "Dread" Clark-Thomas, 22, of Lauderdale Lakes, conspiracy to commit murder, conspiracy to commit armed home invasion robbery, and conspiracy to commit armed trafficking in cocaine; Arthur Murphy Jr., 35, of Fort Lauderdale, conspiracy to commit armed home invasion robbery, conspiracy to commit armed trafficking in cocaine, and obstruction without violence; Ebony Dumbar, 22, of Fort Lauderdale, conspiracy to commit armed home invasion robbery and resisting without violence.

Deputies were involved in a similar shooting at the warehouse area in 2008, in which SWAT members shot one man who they said was part of a group preparing to commit a home-invasion robbery.