HIALEAH (CBSMiami) – The Hialeah Police Department reports the man who held a child hostage and shot multiple people Saturday night is dead.

According to police, it all started when officers responded to reports of a 31-year-old woman and 51-year-old man shot in the area of W 24 Ave. and 72 St. at 9:30 p.m.

As officers descended on the scene, investigators said the 59-year-old shooter barricaded himself inside the apartment with his ex-partner and her 9-year-old son.

Police said as SWAT tried to enter the apartment, the barricaded man began to shoot, striking an officer in the foot.

As the situation began to deteriorate, focus turned to rescuing the child. After several hours, police were able to save the 9-year-old. However, the man was still locked up with the ex-partner, forcing SWAT to go in again.

Upon entering, SWAT said they found the 48-year-old ex-partner on the ground suffering from a gunshot wound to the head.

Officers then found the subject in the bathtub of the bathroom where there was a confrontation. The man died, but police have not said if he was shot by SWAT or if it was self-inflicted.

The ex-partner, her daughter, her new partner and the officer were all taken to the trauma center of the Jackson Memorial Hospital.

The ex-partner and her daughter, who was shot twice, were discharged from the hospital Sunday evening, as was the officer.

However, the woman’s current partner, who was also shot twice, remains in the hospital in critical condition.

The 9-year-old child suffered only minor injuries.

Authorities have not identified any of the injured.