This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

The 39-year-old man who killed his three children and another person at a Sacramento church during a supervised visit Monday had been the subject of a restraining order by the children’s mother, authorities said.

Sgt. Rodney Grassmann, a spokesman for the Sacramento County Sheriff’s Office, said authorities are investigating how he got the firearm despite the court order.

Detectives in Sacramento on Tuesday were still trying to sort out the chain of events that led to the gunman entering the sanctuary at the Church in Sacramento, on Wyda Way east of the city, shortly after 5 p.m. and opening fire. He then took his own life, officials said.

The children who were killed were girls ages 9, 10 and 13, Grassmann said.

Read the full story on LATimes.com.