PISCATAWAY — A former Rutgers University student attacked another student and a faculty member in an unprovoked attack Friday afternoon on campus, officials said.

The student and the faculty member were hospitalized with injuries, the Middlesex County Prosecutor's Office said.

The attacker also is being treated at a local hospital for serious self-inflicted wounds.

The stabbing took place in an office at the Rutgers Business School on the Livingston campus in Piscataway.

University officials said the two victims were able to flee. Campus police officers apprehended the attacker after he had stabbed himself.

Officials did not reveal what motivated the attack. Police have not identified the suspect and no charges were filed.

A university text message issued shortly after the attack ordered all to avoid the area and take shelter.

In a tweet posted 3:30 p.m., the university said they had a suspect in custody and the area was safe. A police investigation is underway.

University spokesman E.J. Miranda said there was no longer any danger to the community after the suspect was apprehended.

University Vice President Antonio M. Calcado called the attack an "isolated incident" and said counseling would be available for students and staff.

The business school is located on Rockafeller Road.

Prosecutors asked anyone with information to call the Rutgers University Police Department at 732-932-7211.

It's the second incident on a New Jersey university campus this week. Monmouth University in Long Branch was on a lockdown Tuesday night after two female students were held up by an armed robber. Police have accused a university football player with using a fake gun in the robbery.

Sergio Bichao contributed to this report.

Contact reporter Dan Alexander at Dan.Alexander@townsquaremedia.com.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.