Three of the injured are in critical condition, according to Baker.
Terrell was also charged with four counts of assault with a deadly weapon with intent to kill, possession of a firearm on educational property and discharging a firearm on educational property, police said. No one else is being sought.
Police received reports of an active shooter in the university's Kennedy Building at 5:42 p.m.
About the same time, the University of North Carolina at Charlotte’s Office of Emergency Management's Twitter account urged people to "Run, Hide, Fight. Secure yourself immediately."
Baker said that "one officer immediately went to the suspect to take him down."
"He said nothing," Baker said, referring to the suspect. "Our officers' actions definitely saved lives, there's no doubt about that."
Let our news meet your inbox. The news and stories that matters, delivered weekday mornings.
Baker referred to the suspect as "not somebody that is on our radar."
Terrell's grandfather Paul Rold had not heard about the shooting before The Associated Press contacted him, the AP reported. He said his grandson, a UNC-Charlotte student, never showed any interest with guns or weapons.
"You're describing someone foreign to me," Rold told the AP Tuesday night. "This is not in his DNA."
Tristan Field, 19, told NBC News that he was in a classroom in the Kennedy Building where final presentations were taking place when six or seven gunshots rang out from the opposite side of the room.
Field did not see the shooter or hear the gunman say anything. "He just started shooting," Field said. The professor, Field and other students fled to an adjacent building, where they stayed until police escorted them out.
The Alpha Tau Omega fraternity tweeted that Drew Pescaro of the Lamda Delta Chapter was among the injured and under medical supervision. The student-run Niner Times newspaper tweeted that Pescaro is a sports writer at the publication.
Tuesday was the last day of classes at the university, according to WCNC. The university has around 30,000 students, according to its website.
Philip Dubois, chancellor of the university, said Tuesday night that while there is much that is not yet known, "we do know that this is the worst day in the history of UNC Charlotte."
"We are a very tight-knit community. Universities are that way. And this really just shakes us to our very core," Dubois added.
The FBI said it was on the scene and assisting the Charlotte-Mecklenburg Police Department and other law enforcement agencies.
Gov. Roy Cooper called the shooting "a tragic day at this great university," and he said "we mourn the loss of life, we pray for those who are being treated at the hospital."
U.S. Rep. Alma S. Adams, D-N.C., tweeted: "I'm devastated by the events at UNC Charlotte. I'm praying for the victims, their loved ones, and the entire UNCC community tonight. This senseless violence has to stop."
CORRECTION (April 30, 2019, 10:35 p.m. ET): An earlier version of this article misspelled the last name of a student who was in a library. She is Jordan Pearce, not Peace.
Phil Helsel is a reporter for NBC News.
Caitlin Fichtel is a New York-based social media reporter.