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.

READ MORE: Caldor Fire Containment Remains at 71%

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.

READ MORE: Video Released Of Fatal Officer-Involved Shooting Of Tahoe Park Resident Who Shot At Authorities

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.

MORE NEWS: Coroner Identifies Passenger Killed In Wrong-Way DUI Crash On Highway 99

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