BERLIN — The Swiss police were searching Monday for a man accused of attacking people with a chain saw at a health insurance office in the city of Schaffhausen, near the German border.

Two people injured were taken to a hospital for treatment, the police said. Three others, slightly wounded as the attacker fled, were treated by medics at the scene. None of the victims sustained life-threatening injuries, the police said.

The authorities identified the suspect as Franz Wrousis, 51. They said that he had a criminal record and that he had recently been living out of his car. In a warrant issued for his arrest, Mr. Wrousis was described as aggressive and psychologically unstable, and as having a “disheveled” appearance.

Image Franz Wrousis, the suspect. Credit... Schaffhausen Police, via Agence France-Presse — Getty Images

The authorities said that they were still investigating the motivation for the attack, but that Mr. Wrousis appeared to have been targeting employees of CSS Insurance who were working in the company’s office in Schaffhausen.