CNN  — 

One man and four children are dead after a standoff of more than 20 hours, Orlando police Chief John Mina said.

Mina said officers were in contact with Gary Lindsey Jr., directly and indirectly, by phone throughout the day Monday after he shot an officer around 11:45 p.m. Sunday and barricaded himself in an apartment with the four children, ages 1, 6, 10 and 11.

They had gone to the apartment in response to a domestic violence call from Lindsey’s girlfriend.

At one point, Mina said, officers tried to give Lindsey another phone because his WiFi phone had a bad connection, and during the exchange they saw that one of the children was dead.

Orlando police Chief John Mina arrives for a news conference during Monday's hostage standoff.

Officers entered the apartment around 9 p.m. Monday, Mina said, and found the children dead of gunshot wounds in two bedrooms. Lindsey’s body was found in a closet with an apparent self-inflicted gunshot wound, police said.

Mina said two children are believed to be Lindsey’s and two are his girlfriend’s.

“We have no idea when those poor children lost their lives. That will all be part of the investigation,” Mina said. He added that law enforcement had worked all day to bring the standoff to a peaceful resolution, but unfortunately it was a “tragic and sad” ending.

Mina said Tuesday afternoon that there was never any indication of an imminent threat to the children during the standoff. Authorities continued to try to talk to the suspect, while SWAT team members studied the apartment layout.

Lindsey, 35, shot at officers when they arrived, hitting one, Mina said. At least one officer returned fire, but Mina said he did not know whether Lindsey was hit. Police said Lindsey’s girlfriend made the initial call after she had left the apartment.

Lindsey inherited the guns – two rifles, two shotguns and a handgun – from his father, Mina said.

Orlando police block an intersection Monday near an apartment complex where the standoff occurred.

Officer Kevin Valencia, who has been with the Orlando police since 2016, was shot. He is in critical condition after surgery, Mina said.

Mina told CNN affiliate WFTV that Valencia, who is in his late 20s and has a wife and two boys, was expected to survive.

“He’s extremely strong, and we’re praying for the best,” the police chief said.

Mina said Lindsey has been arrested before for arson and domestic violence battery. Criminal records show Lindsey has been arrested four times for violating his probation, CNN affiliate WKMG reported.

Residents evacuated

Apartment building resident Nicole Gonzalez told CNN affiliate WESH that Lindsey had always been friendly and helpful to her.

“It’s shocking because when you see him, he’s very cordial, very respectful – you know, ‘Good morning, hi,’ Sometimes if we need help bringing stuff up, he’s willing to help,” she said.

Gonzalez told CNN affiliate Channel 9 about seeing an officer being taken away in an SUV.

“We saw the officers dragging another officer – he was lying on the floor, they were trying to keep him awake – they threw him in the car and drove off,” Gonzalez said.

She said officers then went door-to-door evacuating residents from the scene of the standoff.

Maria Tapia and Miguel Lopez were among those who were forced to leave, according to WKMG.

“It was around midnight and we were sleeping, and we heard somebody knocking on the door on the second floor,” Lopez told WKMG. “Suddenly somebody opened the door and we just hear, ‘Pow, pow, pow, pow’ – four gunshots.”

Taipa said she saw the wounded officer from their apartment window.

“We saw the police officer laying on the ground with blood and everything,” she said. “It was horrible.”

Police then told the couple it was not safe for them to stay in the building, Lopez said.

CNN’s Joe Sutton, Tina Burnside, Jamiel Lynch and Darran Simon contributed to this report.