SAN FRANCISCO (AP) _ A man wielding a meat cleaver attacked pedestrians as he ran down a busy city street Saturday.

The man, who has a history of mental illness, also lunged at the officer who subdued him, police said. The officer suffered cuts and bruises and two women were hospitalized with head and neck injuries.

The man, whose identity was not released, was arrested for investigation of attempted murder.

The rampage began at a California Federal Bank branch, where the man damaged the door and an ATM machine, said Lt. Gary Manini.

Witnesses said he then ran down the street, hitting or slashing people in his path.

``The guy was just crazy,'' said Darwin Rivera, 20. ``Whoever was in the sidewalk, he hit them upside the head.''

When police arrived, the man was surrounded by an angry crowd yelling, ``Shoot him. He's crazy,'' said Lt. Jack Ballentine.