JACKSONVILLE, Fla. -- Two officers are in stable condition following a shooting on Jacksonville's Westside Friday evening, according to Jacksonville Sheriff Mike Williams.

The two officers were shot while attempting to apprehend an active shooting suspect on Jacksonville's Westside Friday night, the Jacksonville Sheriff's Office said.

The shooting occurred when a contact team of seven officers approached the home at 5176 Seaboard Avenue just before 11 p.m. The officers were called out to a report of an attempted suicide and threats to harm other individuals inside the home.

When the team entered the home, the suspect immediately opened fire at the officers with a high-powered rifle just inside the threshold of the door, Williams said.

"We are talking a gun battle within four or five feet of each other," said Williams. "So, the suspect fired at the officers. Two officers were struck and the suspect in the exchange was struck twice."

The suspect and the officers were then transported to a local hospital. The suspect died at the hospital, police said.

The suspect, identified as 25-year-old Derrick Brabham, had no prior criminal history, according to Williams. Brabham had been "drinking all evening," said Williams.

"Something led to arguments," Williams said. "Those arguments led to threats for him to harm himself and to kill the other residents of the house. So, basically what we have is really a violent, alcohol-fueled domestic situation."

The three female victims, who had initially called authorities, were found hiding inside one of the rooms in the house following the shooting, Williams said.

A 19-month-old baby was also located in the house, separated from where the women were located, according to Williams.

The officers involved were 11-year veteran Michael Fox and 5-year veteran Kevin Jarrell. Williams said this is Fox's second officer-involved shooting during his tenure with JSO.

"Early this morning, I was able to see Officer Jarrell," Williams said. "He is in stable condition, still has a long road back. I was not able to see Officer Fox. He was in surgery. But again, for both of these men, they are in stable condition, but I would expect obviously a long road back for both of them."