TEXAS CITY, Texas (KTRK) -- A Texas City man faced a judge just one day after he allegedly killed three children, including a baby, and then shot his girlfriend in the head.
WATCH: Junaid Mehmood in court for first time
Junaid Mehmood was taken into custody late Thursday behind the Panera Bread restaurant on El Dorado at I-45 in Clear Lake, just hours after police made the gruesome discovery.
Late Friday, we learned chilling details about how the three children died inside the family's Texas City apartment. Police said the Galveston County Medical Examiner's Office found the three young victims suffered multiple stab wounds, as well as blunt force trauma.
Police say the 27-year-old confessed to 911 dispatchers about killing Angela Pilot, 5; Prince Larry Brown, 2; and 2-month-old Ashanti Mehmood.
The mother of the children, Kimaria Nelson, 24, underwent surgery and is currently listed as stable at University of Texas Medical Branch in Galveston.
Officers said they were responding to a welfare check around 6:15 p.m. Thursday at the Pointe Ann Apartments when the bodies of the children were found.
Shortly after the alleged stabbings and shootings, Mehmood posted a cryptic message on Facebook, apologizing to Nelson and her family:
Goodwill Industries told Eyewitness News that Mehmood quit his job on New Year's Eve, with no explanation given.
Thursday night, Mehmood was audibly distraught in the back of a patrol car as he awaited transfer into Texas City police custody.
WATCH: Police reveal how Texas City children were killed
Investigators said he was "incoherent," emotional and yelling at times, and that he confessed to dispatchers, "I killed my family."
News of the children's death and Mehmood's capture sent shockwaves through Nelson's family.
"I'm shocked," said Taurus Nelson, the children's grandfather. "She (my daughter) actually wanted me to meet him and she was crazy about him, this that or the other."
Mehmood, however, has a long criminal record, including several cases of domestic abuse. In 2014, he pled guilty to assaulting his girlfriend at the time and spent several weeks in jail.
"I KILLED MY FAMILY," SUSPECT ALLEGEDLY CONFESSES
"I said that could have been my sister, as many times as he threatened and said it, he really had it in his heart to do that," said Dasia Scranton, whose sister was abused by Mehmood.
Scranton says her sister went back to Mehmood even after he spent time in jail for abusing her. Eventually, the family had to rescue her.
"My mom and I had to pull our money together to move her away from the county just to get her away from him."
ORIGINAL STORY: Man wanted after 3 children found dead in apartment
Follow ABC13 Reporter Courtney Fischer on Twitter and Facebook.