Police are searching for a gunman who shot dead two students and injured nine others at Brown University in Providence, Rhode Island.

Police say the attacker was a man dressed all in black who fled on foot, and a shelter-in-place warning is in effect for the area surrounding the prestigious university.

The attack on the campus brings the number of mass shootings in the US to 389 for this year, according to the independent analysis website Gun Violence Archive.

It defines mass shootings as having four or more victims killed or injured, not including the attacker.

Here's what we know:

What happened?

The gunman opened fire in a classroom at around 16:00 local time (21:00) on Saturday at the Holley engineering building at the eastern end of Brown's campus, according to officials.

Final exams were taking place in the building at the time of the shooting, the school said.

An economics professor told local public media outlet Ocean State Radio that the shooting had taken place during a review session for her course, led by her teaching assistant.

Students recounted the horror of scrambling to escape as shots rang out, and those in the library at the time described hiding away from windows as they awaited police assistance.

Brown University, part of the Ivy League, is located in Providence, Rhode Island.

Who are the victims?

Two students were killed, and a further nine are receiving treatment. Medics report one person is in critical condition, with six others classified as critical but stable.

The identities of the victims have not been released, but university officials confirmed they were all students.

President Christina Paxson expressed her devastation over the incident, marking it as a tragic day for the university community.

Who is the gunman?

Police have released CCTV footage of the suspect, described as a male wearing all black, but little else is known at this time.

The investigation is ongoing as they determine the identity of the shooter and a possible motive.

What is the latest?

A massive operation is currently underway to track down the suspect, with residents advised to remain indoors.

US President Donald Trump condemned the shooting, sending thoughts and prayers to the victims.

Additional reporting by Pratiksha Ghildial