SAN FRANCISCO (KRON)–A suspect who was shot by San Francisco police after he allegedly violated a restraining order on Friday is now in life-threatening condition, according to police.

Police responded to reports of the violation around 3:51 a.m. Two neighbors were involved in a dispute on Capitol Avenue, said police spokeswoman Officer Giselle Talkoff.

A resident had called police on his neighbor was violating a temporary restraining order he had against the suspect.

When police arrived, they confronted the suspect. There was a struggle between the officers and the suspect that led to shots being fired.

The homeowner ran back into his house and called 9-1-1 while barricading himself inside.

Officer eventually made their way into the house to arrest the suspect.

The case is still being investigated by police.

Police Commission president Suzy Loftus said Friday in a statement that it’s too early to draw conclusions about what happened.

She also said the commission is committed to collaborative efforts to keep residents safe and give officers what they need to “preserve the safety and sanctity of life for all involved.”