Ronald Haskell, 33, is accused of killing his ex-wife's sister, her husband and four children in attack in Houston on Wednesday

A man charged with killing six members of his ex-wife's family, including four children, was the subject of a restraining order obtained by his own mother less than a week before the attack and faced previous allegations of domestic violence, authorities said.

Ronald Lee Haskell, 33, is accused of killing his ex-wife's sister, Katie Stay, her husband and the children, ranging in age from four to 14, after binding and putting them face-down on the floor of their suburban Houston home. Each was shot in the back of the head after the family refused to tell Haskell where he could find his ex-wife, officials said.

The lone survivor of the Wednesday attack, the slain couple's 15-year-old daughter, suffered a fractured skull when a bullet grazed her head.

The San Diego County, California, sheriff's office said in a Thursday statement that Haskell's mother had reported an argument with her son July 2 at her home in San Marcos, California, during which Haskell physically restrained her when she tried to leave the house to call for help. Haskell finally left after a few hours, and his mother contacted 911, the statement says.

She later obtained a restraining order against her son and the case remains under investigation, according to the statement.

Haskell also had a handful of previous run-ins with law enforcement in Utah, where he had lived with his wife. Neighbors said Haskell's marriage was so rocky that Stay went to Utah last fall to help her sister escape the relationship and start a new life in Texas.

Stay "was very instrumental in helping her sister get here so she could have a fresh start. Katie's a spitfire. She has energy to stand up for what she believes is right and true," said Verena Beckstrand, a neighbor who choked back tears as she talked about the family.

Documents presented at a preliminary court hearing for Haskell on Thursday say the daughter who survived the attack at the home in Spring attempted to close the door after telling Haskell her parents were not there, but he allegedly kicked it in. After the shootings, the teen played dead and called 911 when Haskell left the house, prosecutors said.

When the badly wounded daughter contacted authorities, she told them the gunman was planning to shoot other relatives, Harris County constable Ron Hickman said. Police located Haskell's car and took him into custody after a three-hour standoff.

In a statement issued Thursday through the Harris County Sheriff's Office, Katie Stay's father, Roger Lyon, said his hospitalized granddaughter "is expected to make a full recovery."

"We are grateful for this miracle," Lyon said in his statement. "We are in awe of her bravery and courage in calling 911, an act that is likely to have saved all of our lives. She is our hero."

By Thursday morning, a small memorial with three candles and a plant had been set up at the front door of the family's two-story white-brick and brown wood-trimmed home. A couple with a child left a framed photo of the family with the inscription "Faith, Hope, Love."

The father, Stephen Stay, was a real estate broker. The mother was a helpful presence around the neighborhood, planning Halloween and Christmas parties for children, said Viri Palacios, who lives across the street.

"I don't think any of us will ever be able to see that house the same again," Palacios said. "I just want the word to get out they were a really, really good family."

Online jail records did not list an attorney for Haskell, who initially was misidentified by authorities as the slain children's father. Officials did not explain the mistake Thursday.

Haskell was wearing a FedEx shirt at the time of the attack, but authorities seemed uncertain whether it was a deliberate attempt to deceive. Hickman said investigators were not sure whether the suspect would have needed a disguise to get in the house, or if the children knew him.

Haskell had once done work for FedEx but not since January, the company said in a statement.

Haskell was previously jailed in 2008 in Logan, Utah, about 80 miles north of Salt Lake City, on charges of assault and domestic violence. His wife told police he dragged her by her hair and struck her in the head in front of their children.

Those charges were later dismissed as part of a plea deal, according to information released Thursday by Logan authorities.

Haskell also was served last year with a protective order from his ex-wife. It was dismissed in October after the couple filed for divorce, online court records show.

A divorce decree issued in February shows Haskell and Melanie Kaye Haskell were married in 2002 in Orange County, California. They separated in June 2013. A judge granted joint custody of the couple's four children, ranging in age from 3 to 11, with Haskell's wife getting primary custody.