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.
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 fraternitytweetedthat Drew Pescaro of the Lamda Delta Chapter was among the injured and under medical supervision. Thestudent-run Niner Times newspapertweeted that Pescaro is a sports writer at the publication.
Tuesday was the last day of classes at the university, according toWCNC. 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-knight community. Universities are that way. And this really just shakes us to our very core," Dubois addded.
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.