CHARLOTTE, N.C. — Students and staff at UNC Charlotte woke up Tuesday morning eager to complete their final day of classes before the semester ends. 

At 5:40 p.m., a 22-year-old gunman opened fire, killing two and injuring four in a classroom on the campus. UNCC police quickly responded and thanks to their quick actions, saved lives.

UNCC Police Chief Jeff Baker said in a news conference that their officers moved in quickly when the gunman began opening fire in the UNCC building. 

Baker said one of his officers was able to engage with the suspect and then immediately take him down.

"We are trained to go to the sound," Chief Baker said. "So those officers were moving towards whatever they heard."

Related story ► Who is Trystan Terrell? UNCC shooting suspect facing multiple charges

Related story ►Real-time updates: UNC Charlotte shooting

Chief Baker said he ensures his officers are properly trained in active shooter situations and credits that training for the swift actions of his officers. 

"As you can see, it's important to do," Baker said.