SAN FRANCISCO (CBS/AP) — A San Francisco police officer and a burglary suspect were hospitalized Saturday with unspecified injuries following an assault that escalated into a shooting, police said.

Responding to a burglary call about 8:30 a.m. at 23rd and Capp streets, two officers confronted a man matching the suspect’s description when he attacked them with a weapon, Officer Robert Rueca, a department spokesman, said in a statement.

READ MORE: COVID Surge: Mask Mandate Returns To Bay Area Businesses With No Limits On Capacity
Officer-Involved Shooting in Mission District

An SFPD cruiser at the scene of an officer-involved shooting in the Mission Dist., Dec. 7, 2019

Rueca said the attack led the officer’s partner to fire his gun.

The suspect was listed in critical condition, said Brent Andrew, a spokesman for San Francisco General Hospital. The officer’s condition has not been released.

Rueca didn’t say what kind of weapon was used by the suspect.

READ MORE: Firefighters Battling 2-3 Acre Wildfire In Lake County

A witness told The San Francisco Chronicle said she saw both officers trying to revive the man after the shooting. Lisa Ruth said the officer who was injured was bleeding from his head and appeared to have a broken nose.

“The back of his neck was really messed up. It looks like a rope burn,” Ruth said. “Every day it’s something — the cops around here have a really hard time.”

She said the officer who opened fire appeared upset and was crying.

The shooting happened in a gritty section of the city where homeless people commonly pitch tents on the sidewalk.

MORE NEWS: UPDATE: Shooting Shuts Down EB Highway 4 In Antioch

© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report