CHARLOTTE, N.C. —

Two people have died and four people are hurt after a shooting on UNC Charlotte's campus, Medic confirmed. 

Medic said the two deceased were pronounced dead at the scene. Two people have been treated for life-threatening injuries and two have been treated for non-life-threatening injuries. 

Officials confirmed to NBC Charlotte the shooter was a student.

Several students who were on the UNC Charlotte campus described the harrowing moments during the fatal shooting on campus. 

Sophia, a student at UNCC, said she was sitting in her classroom when her teacher ran into her room. 

RELATED: Live updates: Two killed in UNC Charlotte shooting

RELATED: 2 dead, at least 4 injured on UNC Charlotte campus

"We were in class and the teacher walked outside and it turns out a bunch of students were running," Sophia told NBC Charlotte. "He came back concerned, told us to calm down and not to freak out." 

Sophia said her class began to slowly exit the classroom.

"He goes back inside and says 'everybody pick up your stuff and go.'" Sophia said. "As we were running out we saw a lot of other people running out, crying and turns out people who were leaving the library in the Kennedy building heard random kids shouting 'shooting, shooting, run." 

NinerAlerts, UNC Charlotte's Office of Emergency Management, first said shots were reported near the Kennedy building on campus Tuesday afternoon. 

Just before 6:45 p.m., NinerAlerts said that buildings were being swept by law enforcement.