A schizophrenic man suspected of killing his father with an assault rifle in Philadelphia was arrested Tuesday near Harvard University in Massachusetts, where he previously attended, police said.

The suspect, Sohan Panjrolia, 31, was collared by Cambridge police Tuesday afternoon following a shelter-in-place warning issued by Harvard University to students in the historic district, where he was previously spotted, police said.

There was no indication that Panjrolia was armed with a weapon or made any comments to officers when he was taken into custody, Cambridge police spokesman Jeremy Warnick told The Post.

Panjrolia earned a bachelor of liberal arts degree from the Harvard University Extension School in 2013, university officials said.

Police in Philadelphia said Panjrolia, who was diagnosed with schizophrenia, was being sought for allegedly gunning down his 60-year-old father, Mahendra Panjrolia, in the family’s home late Saturday.

“The son went upstairs and retrieved an assault rifle and went into a first-floor bathroom, discharging the weapon once,” the department said Monday. “The son exited the bathroom and then pointed the gun in the direction of his parents. He fired multiple shots at his father, striking him in the head.”

Panjrolia’s mother was not hurt, police confirmed to The Post.

Panjrolia then ran out of the home while still armed and drove off in a gray 1999 Toyota Camry, which was later located a few blocks away, police said.

Investigators previously said that Panjrolia may be using narcotics and should be considered armed and dangerous.

The search for Panjrolia prompted Harvard officials to issue an emergency alert that warned students to avoid some streets near the university. The shelter-in-place advisory was lifted about 25 minutes later.