ORLANDO, Fla. (AP) — A man accused of battering his girlfriend shot an officer and barricaded himself in a Florida apartment, where police ultimately discovered that he killed the four children he had been holding hostage before killing himself, a police chief said.

Orlando police Chief John Mina said at a press conference just before midnight Monday that the suspect, who was identified as 35-year-old Gary Wayne Lindsey Jr., was found dead in a closet when officers entered the apartment nearly 24 hours after the standoff began.

Mina said officers tried to offer one of their phones to Lindsey, whose phone had spotty service, and saw that one of the children had been killed. Authorities entered the apartment around 9 p.m. hoping to rescue the others, but all were found dead from gunshot wounds.

“Our hearts go out to all the families involved,” Mina said.

The children with Lindsey ranged in age from 1 to 11. Two of them were Lindsey’s children and two belonged to his girlfriend, the police chief said.

The girlfriend had called police late Sunday to report she had been beaten and she managed to get out of the apartment.

Responding officers were fired upon. Officer Kevin Valencia was shot and was in critical condition but is expected to survive, Mina said Monday. One officer was able to return fire.

Orlando, Florida authorities say man shot an officer before barricading himself in an apartment. He killed the four children he had been holding hostage and took his own life, following a siege that lasted nearly 24 hours. (June 12)

Valencia is in his late 20s and has been with the police department since 2016.

Court records show Lindsey, 35, had an extensive criminal history involving arson, battery and theft. He was on probation for several charges including arson.

Judy Pepper, who lives in the apartment complex, told the Sentinel that she had fallen asleep on the couch after watching a Sunday night baseball game on television when she heard four loud gunshots.

“It just went, ‘Pop. Pop. Pop. Pop,’” Pepper said.

She looked out the window and saw three people carrying a police officer onto the grass. She said other officers arrived, cut open his shirt and appeared to be putting bandages on his neck. Then, they put him in a patrol car and sped away.

“Hell, yes, I was absolutely terrified,” she said.

Officers evacuated other residents of the complex in the middle of the night. Some were milling around nearby restaurant parking lots Monday morning, still wearing pajamas. They were later taken to a hotel.

The standoff also disrupted the routines of residents who lived in neighboring apartment communities. About five blocks from the apartment, two police squad cars blocked the entrance to the street. Residents of the neighboring apartment complexes had to show identification and be escorted by the police. Several firetrucks lined the road.

___

This story has been edited to correct the ages of the children, which range from 1 to 11.

___

Freida Frisaro in Miami, John Raoux in Orlando, and Michelle A. Monroe in Phoenix contributed to this report.