U.S. authorities said Sunday they had taken a person of interest into custody following a shooting at Brown University that killed two students and wounded nine others, after a gunman opened fire during exams and prompted a prolonged campus lockdown, the latest in a long line of school attacks across the country.

A shooter opened fire on Saturday at the elite Ivy League university in Providence, Rhode Island in a building where exams were taking place, triggering a campus lockdown and launching an hours-long hunt for the suspect.

During a press conference early Sunday, Providence Mayor Brett Smiley said a "person of interest" had been detained and the shelter-in-place order lifted.

"I want to offer my profound thanks to all the hardworking men and women in law enforcement who worked through the night to be able to get us to this point," Smiley said.

Speaking alongside him, Police Colonel Oscar Perez added authorities were "not at this point" looking for anyone else in relation to the attack.