A 24-year-old man was in custody Thursday in connection with the shooting of two adults and a child in North Carolina earlier this week, police said.

Robert Louis Singletary allegedly shot a 6-year-old girl and her parents after their basketball rolled into his yard and the family went to retrieve it, according to local WBTV and WSOC-TV. Singletary turned himself in to police in Tampa, Florida, on Thursday afternoon after a search, the Gaston County Police Department in North Carolina said.

“I want to say to the people of Gaston County – this sort of violence will not stand,” Gaston County Police Department Chief Stephen Zill said in a statement.

The incident follows incidents of gun violence in Missouri, New York and Texas in which everyday mistakes led to shootings. 

‘Stand your ground’ laws:Ralph Yarl, Kaylin Gillis shootings may renew debate

North Carolina girl, parents shot

The shooting happened late Tuesday, according to the Gaston County Police Department. 911 operators received a call about a man firing a gun outside of homes in a neighborhood just south of Gastonia, police said in a statement.

Jamie White, who had run to aid his daughter, was shot in the back and remained hospitalized as of late Thursday with serious wounds, according Gaston police. The child, Kinsley White, was grazed by a bullet in the left cheek; she was treated and released, her family said. The girl’s mother, Ashley Hilderbrand, who was grazed by a bullet in the elbow, was also treated and released.

Authorities also said Singletary shot at another man but missed.