SAN FRANCISCO (AP) — San Francisco police say a knife-wielding man in a wheelchair stabbed an officer before the attacker was shot.

Officers were called to the Department of Public Health building Tuesday morning by witnesses who said the agitated man was slashing tires on parked cars.

An officer was stabbed in the shoulder.The police chief says officers tried to subdue the man with pepper spray and eventually a bean bag round before the shooting.

The San Francisco Chronicle reports the man got out of the wheelchair and walked around at one point.

Police released a witness cell phone video showing four officers surrounding the suspect in his wheelchair before the shooting.

The suspect and wounded officer are in the hospital with non life-threatening wounds.