Students and faculty file out of buildings with their hands up during a lockdown after a shooting on the campus of University of North Carolina Charlotte in University City, Charlotte, on April 30, 2019. - Six people were shot, two of them died on the University of North Carolina Charlotte campus. One person was taken into custody, according to police sources. (Photo by Logan Cyrus / AFP)        (Photo credit should read LOGAN CYRUS/AFP/Getty Images)
Logan Cyrus/AFP/Getty Images
Students and faculty file out of buildings with their hands up during a lockdown after a shooting on the campus of University of North Carolina Charlotte in University City, Charlotte, on April 30, 2019. - Six people were shot, two of them died on the University of North Carolina Charlotte campus. One person was taken into custody, according to police sources. (Photo by Logan Cyrus / AFP) (Photo credit should read LOGAN CYRUS/AFP/Getty Images)
Now playing
01:12
Deadly shooting on campus of UNC Charlotte
Now playing
02:31
Merrick Garland announces plan to combat domestic terrorism
Two different videos showing several arrests made by Ocean City Police in Maryland following their enforcement of smoking ordinance violations on Saturday have gone viral, with viewers questioning the use-of-force techniques applied by officers responding to the incidents. CNN has not seen video of what happened at the beginning of this incident. In videos obtained by CNN and confirmed by Ocean City Police to show parts of the incident, police are seen arresting at least three individuals as a crowd of people gathers around. In one video, one of the people being arrested is held down by five officers as one officer can be heard saying something about resisting. "I'm not resisting," the teenager answers, face down on the boardwalk. As the teen asks officers why he's being arrested, one of the officers begins to knee the individual in the side, while two of the other officers pull away. The officer eventually knees the man five times before officers appear to put the man in handcuffs.
KIARA TATE/usetmx
Two different videos showing several arrests made by Ocean City Police in Maryland following their enforcement of smoking ordinance violations on Saturday have gone viral, with viewers questioning the use-of-force techniques applied by officers responding to the incidents. CNN has not seen video of what happened at the beginning of this incident. In videos obtained by CNN and confirmed by Ocean City Police to show parts of the incident, police are seen arresting at least three individuals as a crowd of people gathers around. In one video, one of the people being arrested is held down by five officers as one officer can be heard saying something about resisting. "I'm not resisting," the teenager answers, face down on the boardwalk. As the teen asks officers why he's being arrested, one of the officers begins to knee the individual in the side, while two of the other officers pull away. The officer eventually knees the man five times before officers appear to put the man in handcuffs.
Now playing
01:56
Video shows police using force on teens while enforcing smoking ban
The California State flag flies beside a sign for its sister city Split outside City Hall, in Los Angeles, California on January 27, 2017.
A campaign by Californians to secede from the rest of the country over Donald Trump's election is gaining steam with suporters given the green light to start collecting signatures for the measure to be put to a vote.


 / AFP / Mark RALSTON        (Photo credit should read MARK RALSTON/AFP/Getty Images)
MARK RALSTON/AFP/Getty Images
The California State flag flies beside a sign for its sister city Split outside City Hall, in Los Angeles, California on January 27, 2017. A campaign by Californians to secede from the rest of the country over Donald Trump's election is gaining steam with suporters given the green light to start collecting signatures for the measure to be put to a vote. / AFP / Mark RALSTON (Photo credit should read MARK RALSTON/AFP/Getty Images)
Now playing
02:21
California is still requiring masks in these places
Getty Images
Now playing
03:40
See top Trump DOJ official's two-word response to election probe request
BANGUI, CENTRAL AFRICAN REPUBLIC - MARCH 18: A view of daily life in part of street on March 18, 2021 in the capital Bangui, Central African Republic.  Most of the population in Bangui live well below the poverty line, in a country traumatised by years of unrest. (Photo by Siegfried Modola/Getty Images)
Siegfried Modola/Getty Images
BANGUI, CENTRAL AFRICAN REPUBLIC - MARCH 18: A view of daily life in part of street on March 18, 2021 in the capital Bangui, Central African Republic. Most of the population in Bangui live well below the poverty line, in a country traumatised by years of unrest. (Photo by Siegfried Modola/Getty Images)
Now playing
06:12
Russian mercenaries accused of atrocities in the Central African Republic
Now playing
02:27
Triple digit temps reach the northern Rockies
FILE- In this Sept. 30, 2020, file photo, a Boeing 737 Max jet, piloted by Federal Aviation Administration (FAA) chief Steve Dickson, prepares to land at Boeing Field following a test flight in Seattle. Boeing says it has informed 16 of its customers that they should address a possible electrical issue in certain 737 Max aircraft before using them further. Boeing said Friday, April 9, 2021, that the recommendation was made "to allow for verification that a sufficient ground path exists for a component of the electrical power system." (AP Photo/Elaine Thompson, File)
Elaine Thompson/AP
FILE- In this Sept. 30, 2020, file photo, a Boeing 737 Max jet, piloted by Federal Aviation Administration (FAA) chief Steve Dickson, prepares to land at Boeing Field following a test flight in Seattle. Boeing says it has informed 16 of its customers that they should address a possible electrical issue in certain 737 Max aircraft before using them further. Boeing said Friday, April 9, 2021, that the recommendation was made "to allow for verification that a sufficient ground path exists for a component of the electrical power system." (AP Photo/Elaine Thompson, File)
Now playing
03:14
US and Europe suspend Airbus-Boeing dispute as they hint threat from China
CNN
Now playing
01:52
US to pass 600,000 Covid-19 deaths
POOL
Now playing
02:47
'Surprise is an understatement': Reporter on lawmaker's apology
WREX
Now playing
01:00
Explosive chemical factory fire forces evacuation
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Bill Clark/CQ Roll Call/AP
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Now playing
02:34
Merrick Garland releases statement regarding leak probes
Jason Isley/Scubazoo
Now playing
01:18
Mysterious skin disease plaguing sharks near popular dive spot
Israel's Prime Minister Benjamin Netanyahu attends a special session to vote on a new government at the Knesset in Jerusalem, on June 13, 2021. - A delicate eight-party alliance united by animosity for Netanyahu is poised to take over with right-wing Naftali Bennett as prime minister, if the coalition deal passes today's slated parliamentary vote. (Photo by Emmanuel DUNAND / AFP) (Photo by EMMANUEL DUNAND/AFP via Getty Images)
Emmanuel Dunand/AFP/Getty Images
Israel's Prime Minister Benjamin Netanyahu attends a special session to vote on a new government at the Knesset in Jerusalem, on June 13, 2021. - A delicate eight-party alliance united by animosity for Netanyahu is poised to take over with right-wing Naftali Bennett as prime minister, if the coalition deal passes today's slated parliamentary vote. (Photo by Emmanuel DUNAND / AFP) (Photo by EMMANUEL DUNAND/AFP via Getty Images)
Now playing
05:14
Benjamin Netanyahu forced out as Israeli prime minister
screengrab biden g7
pool
screengrab biden g7
Now playing
03:24
Biden ramps up tougher rhetoric against China at G7
Now playing
02:38
CNN's Barbara Starr: No idea why the DOJ snuck into my life
Now playing
08:21
'Very offensive': Mom of US Marine jailed in Russia reacts to Putin's comment
CNN —  

Two people are dead after a shooting on the campus of the University of North Carolina at Charlotte, authorities said Tuesday.

Three people are in critical condition and one other person was injured, UNCC Chief of Police Jeff Baker said.

An officer quickly went to the room where the suspect had fired, disarmed him and took him into custody, Baker said. The suspect was armed with a pistol, he said.

The Charlotte-Mecklenburg Police Department identified the suspect as Trystan Andrew Terrell, 22. He is in custody with charges against him pending.

“Right now, he is not somebody (who) was on our radar,” he said, adding the suspect said nothing while he was being handcuffed.

Authorities announced Tuesday night that remaining occupants of UNC Charlotte campus buildings can depart.

People file out of buildings during a lockdown after the  shooting.
Logan Cyrus/AFP/Getty Images
People file out of buildings during a lockdown after the shooting.

Video posted to twitter by Jordan Pearce, a student, showed people fleeing a campus library as police sprinted toward the area.

An image posted by Pearce shows a door where the glass is all over the floor inside a building.

The university, which has 30,000 students, tweeted Tuesday night that students could leave campus once they were cleared from their buildings.

Tuesday was the last day of classes, with exams to begin on Thursday.

Charlotte-Mecklenburg police will lead the investigation and the FBI is assisting in the case.

CNN’s Jamiel Lynch and Dave Alsup contributed to this report.