A man killed six people in South Florida before being shot dead by a police SWAT team while he was holed up in an apartment with two hostages, who were rescued unharmed, local media reported.

According to information police provided to the media, the gunman shot and killed three men and three women on Friday evening in Hialeah, a city in the Miami metropolitan area.

The suspect was gunned down inside an apartment building after an exchange of gunfire with the SWAT team.

The shooter negotiated with police until the wee hours of Saturday at the building, where police initially found two gunshot victims identified in local media reports as its property managers.

Three other victims were found inside the building, while another victim had been shot dead across the street in circumstances that remain unclear, the media reports said.

After the talks broke down, the SWAT team burst into one of the building's fifth-story apartments, gunned down the suspect and rescued the two hostages unharmed.

"The bad guy is down. He's dead. He cannot hurt anybody anymore", Hialeah Police Detective Carl Zogby told the local media. EFE