Police shot a man on Sunday night who they say was stabbing his roommate in a Brooklyn apartment.

Chief Jeffrey Maddrey of the NYPD's Patrol Borough Brooklyn North said in an emailed statement early this morning that officers responded to a 911 call about a fight at the Cypress Hills building at about 9 p.m. on Sunday. As officers entered the apartment, they encountered several men who they think live there together, according to Maddrey. As the cops investigated, one of the men, Francis DeJesus, allegedly slipped away and returned with a steak knife and chased his roommate with it, stabbing him in the arms.

Maddrey said the officers commanded DeJesus to drop the knife, and when he continued to try to stab his roommate, shot him once.

Emergency medical personnel transported DeJesus to Brookdale Hospital, and took the stabbing victim to Jamaica Hospital. "Two or three" officers were also taken to Jamaica Hospital for observation.

The stabbing victim is listed in stable condition, and the New York Post reports that DeJesus is in serious condition.

It's not yet clear what started the altercation.

Police charged DeJesus with attempted murder and weapon possession.