(CNN) - A social media rivalry between two Dallas rappers escalated into a shooting that left a 9-year-old girl dead days before school started, police said.

East Dallas resident Brandoniya Bennet was struck by a bullet in the head Wednesday as she sat on a couch after getting her nails done for the first day of school, CNN affiliate KTVT reported.

The suspect, Tyrese Simmons, 19, turned himself in Thursday and faces a capital murder charge, Dallas Police said in a statement.

Simmons allegedly went to an apartment complex to confront a rival rapper after the two exchanged disparaging comments about one another on social media, according to authorities. The other person did not come out of his apartment, so Simmons circled around to the back, police said.

Then Simmons opened fire, shooting at the wrong apartment and fatally wounding Brandoniya, police said.

"As adults, as parents as police officers, we're supposed to make them safe, as community leaders, we're supposed to make them safe," Dallas Police Department Maj. Danny Williams told the affiliate. "She was sitting in her house, she felt safe ... she was only 9-years-old."

Simmons' bail was set at $500,000. Information on his attorney was not immediately available.