This undated photo provided by the Willey family shows Jaelynn Willey. A teenager armed with a handgun shot and critically wounded Willey inside a Maryland school on Tuesday, March 20, 2018, and the shooter was killed when a school resource officer confronted him moments after the gunfire erupted. A third student was in good condition after he was shot. Credit: Courtesy of the Willey family via AP

BALTIMORE — Jaelynn Willey, the 16-year-old girl wounded in the school shooting at Great Mills High School in Southern Maryland, died Thursday night, hours after her parents said they would take her off life support.

Willey was left brain-dead after a 17-year-old boy shot her in the head Tuesday morning, said her mother, Melissa Willey.

She died at about 11:30 p.m. Thursday, the St. Mary’s County Sheriff’s Office said. “It is with heavy hearts and great sadness we provide this update,” the sheriff’s office said in a statement.

Willey’s mother spoke to reporters Thursday evening at the University of Maryland Prince George’s Hospital Center, where Jaelynn was being treated. Willey held Jaelynn’s youngest sibling, who babbled as she shared the news, and her husband, Daniel, stood by her side.

Other family stood behind Willey as she spoke and a group of friends stood off to one side.

Jaelynn Willey was rushed to the hospital in Cheverly after the Tuesday morning shooting at the St. Mary’s County high school.

Authorities have said that 17-year-old Austin Wyatt Rollins, also a student at Great Mills, used a handgun to shoot Willey. A 14-year-old boy, Desmond Barnes, also was shot in the leg.

Rollins was confronted by the school resource officer, County Sheriff’s Deputy Blaine Gaskill, who fired at him as Rollins also fired. Rollins later died at a hospital.

Barnes was released from a hospital Wednesday after being treated.

The St. Mary’s County Sheriff’s Office said Wednesday that Rollins took the gun from his father, who had acquired it legally. The sheriff’s office also said that the shooting was not a random act. There’s evidence that Rollins and Willey had “a prior relationship which recently ended,” according to the sheriff’s office.

The shooting added fresh fuel to a renewed national debate about how to keep students safe from gunmen in schools. Last month, 17 students and teachers were slain at Marjory Stoneman Douglas High School in Parkland, Florida, by a gunman wielding a semi-automatic assault rifle.

Politicians have proposed new gun restrictions and measures to fortify schools.

Students from around the nation are poised to rally Saturday in Washington and elsewhere in what they’re calling the March for Our Lives.

Amid the debate, the scene in the hospital lobby was poignantly personal.

Willey said the family’s lives had been altered forever.

“My daughter was hurt by a boy who shot her in the head and took everything from our lives,” Willey said.

Willey, who said her daughter was the second of nine children, spoke with little obvious emotion and apologized that her baby was being loud. She said she thought it was important to share the news of the family’s decision personally.

“I felt like as her mom I needed to make that statement to everybody,” she said.

Supporters of Jaelynn Willey and her family set up an online page for well-wishers to provide donations. It had raised $66,000 by Thursday evening.

The family said Jaelynn was a “dedicated student” and a member of the school’s swim team.

“Jaelynn is an amazing young lady, whose peaceful presence and love of her fellow students and family is known throughout her Maryland-based school,” the family said in a statement.

Kimberly Dennis, the mother of Desmond Barnes, issued a statement earlier Thursday saying the family was grateful he was doing well. She thanked those who treated Desmond and prayed for him.

“We remain deeply saddened and shocked by this shooting incident and continue to pray for the other victim and her family during this difficult time,” Dennis wrote. “We are also praying for the entire Great Mills High School family and young people around this country.

“As a community and nation, we must continue to work and fight for a world that is safe for our children.”

The Baltimore Sun’s Pamela Wood, Talia Richman and Kevin Rector contributed to this article.

Follow the Bangor Daily News on Facebook for the latest Maine news.