Matthew Crain, 35, was shot and arrested by police after he allegedly killed his roommate and her daughter's 17-year-old boyfriend

An Arizona man who allegedly killed his roommate and her daughter's 17-year-old boyfriend during an argument is now in critical condition after he was shot and taken into custody by police.

Matthew Crain, 35, is suspected of fatally shooting Stacey Seward, 33, and Alex Tamborski, who were both found dead inside a Gilbert home by police on Sunday.

Seward's daughter, who also lived in the residence, managed to escape. She told police it was Crain who killed her mother and boyfriend, according to authorities.

Police were called to the home around 2.45am by Seward, who requested assistance with a roommate dispute, according to The Arizona Republic.

Seward and Tamborski were both dead when officers arrived on the scene, and Crain had fled, police said.

Officers reported that Crain was considered armed and dangerous and advised neighbors to lock their doors and remain inside their homes, according to ABC 15.

After five hours of searching, officers found Crain by a canal a mile away from the home.

Police said Crain ignored the two officers' commands and, after he took cover, was perceived as a threat.

Cain was shot multiple times by the two officers and was taken to a nearby hospital with life-threatening injuries, according to police.

It remains unknown if Cain was armed at the time or not.

Police are currently investigating both the double homicide and the officer-involved shooting.