A University of Maryland student was arrested on Sunday after claiming he had access to firearms and threatened to assault officers, police said.

The Baltimore County Police Department took 21-year-old Ryan Matthew Sulkowski into custody in the early hours of Sunday morning, University Police Chief David Mitchell wrote in a campus safety message on Monday. Sulkowski, of Baltimore, was charged with one count of threat of mass violence and one count of disturbing school operation, Mitchell wrote.

Sulkowski’s lawyer, Gary Bernstein, said he was released at about 1:30 p.m. pending trial. In an email update to the campus community Monday night, Mitchell wrote that Sulkowski was released from the Department of Corrections on his own recognizance and will have an upcoming trial in Prince George’s County.

He will not be returning to this university, Bernstein said.

If convicted, Sulkowski could receive up to a combined sentence of more than 10 years in prison and more than $12,000 in fines, Mitchell wrote. He was confirmed to be a student at this university and has been issued a denial of access to the campus, university spokeswoman Jessica Jennings said.

On Friday at about 11:30 a.m., University Police received a complaint of concerning behavior. The reporting individual said Sulkowski was making statements about applying for firearms and waiting for a background check, Mitchell wrote. Sulkowski continued to say he had access to firearms and he was going to shoot University Police officers, Mitchell wrote.

Bernstein said Sulkowski never applied for a gun permit and that he has no guns. He added that Sulkowski was examined at Washington Adventist Hospital and “found not to be a threat to himself or others.”

University Police officials did not immediately respond to requests for comment before the time of publication.

Almost two weeks after 17 students and faculty members died in a school shooting in Parkland, Florida, Bernstein said “in light of everything that’s happened recently, you can understand … file the charges first and sort it out later.”

“We commend the reporting person in this case who came forward and reported to police,” Mitchell wrote. “If you notice an individual that is behaving in a manner that is unsettling, please call the University of Maryland Police Department (UMPD) right away so an investigation can begin.”

In an email statement on Monday, university spokeswoman Katie Lawson wrote, “This is a story of ‘if you see something, say something,’ and we are grateful for any reported information that helps keep our UMPD police officers safe.”

This story has been updated.