A 41-year-old man who allegedly shot at Corpus Christi police officers Thursday confessed to killing his girlfriend during an argument, an arrest report says.

Larry Darnell Moore is facing two counts of suspicion of capital murder and was in Nueces County Jail on Friday.

Police say they were met with gunfire while at a call at a Northside apartment complex. After an encounter with the alleged gunman, officers later discovered the bodies of two women in one of the units.

Police Chief Mike Markle said officers were called about a stabbing at an apartment in the 3000 block of Buffalo Street about 7:27 p.m.

A man came out and began firing at officers, Markle said.

"Officers positioned themselves in a manner that protects their lives," Markle said. “They were able to take the suspect into custody without firing themselves.”

More:Portland officer shoots man who charged at police during disturbance call

No officers were hit, but five bullet holes were found on the driver side door of a patrol vehicle. One bullet hole was found on the driver side of another police vehicle.

As officers were searching, they saw a man in a red shirt walking towards them. Officers confronted the man, identified later as Moore, and determined he was the shooter.

"Moore stated that he was the one that shot the gun," an arrest report states. "Moore then stated that he shot his girlfriend."

They learned he had dropped the weapon by the apartments.

More:Corpus Christi police search for suspected vehicle involved in fatal southside shooting

Moore’s attorney, Kenneth Botary, told the Caller-Times the incident stemmed from an altercation that escalated between Moore and his live-in girlfriend.

Botary was appointed to represent Moore Friday and said he has spoken with his client. He said Moore and the woman got into a physical argument at the apartment they shared.

At some point, she ran to a neighbor’s apartment and Moore followed, the lawyer said. There was another altercation there and shots were fired.

Senior Officer Travis Pace said two women were found dead from gunshot wounds in a different apartment.

Moore opened fire on the police vehicle, hoping the officers would shoot and kill him, Botary said.

More:Corpus Christi police: Warrant issued for suspect in Ayers Street killing

Once outside the apartment and in custody, Moore could be heard yelling "one of you (expletive) needs to put a bullet in my head."

“It sounds like they just had an argument and it got out of hand,” Botary said.

As of Friday afternoon, the women hadn't been identified.

John Lennan, a spokesman for the Texas Department of Family and Protective Services, said the state hasn temporary custody of two children — a 12-year-old girl and 9-year-old boy.

They are the children of Moore and one of the victims, Lennan said.

They will be placed with a relative, he said. A civil hearing will take place later this month to determine if the children will remain in the state's care.