RIDGE, N.Y. (PIX11) – A 3-year-old girl was seriously injured when she was shot by a man who then took his own life on Tuesday, the Suffolk County Police Department said.

The shooting happened around 8:30 p.m. Police said they were investigating a homicide that occurred on June 19 and were talking to a friend of the suspect, 38-year-old Gary Jones, at a home in Ridge.

The friend told officers that Jones was in the home, police said. Officers then directed the friend as well as the children in the home outside, according to authorities.

Police said that’s when Jones appeared with a handgun. He fired several shots at the officers, police said, with one bullet going through a wall and striking a 3-year-old girl in the next apartment.

The girl’s father said his daughter, Lovely Toney, was hospitalized at Cohen Children’s Hospital to treat gunshot wounds to her hand and stomach. He said that his daughter was expected to recover.

Officers surrounded the home with hostage negotiators before a robot was sent in, police said. Jones was discovered dead from a self-inflicted gunshot wound, according to authorities.

Suicide prevention and mental health resources for those in need

If you or someone you know is considering suicide, contact the U.S. National Suicide Prevention Lifeline at 800-273-TALK (8255) . It is a free, 24/7 service that offers support, information, and local resources. You can also click here for additional hotlines within your state.