The man wanted in connection with a deadly shooting in Winter Springs was captured Thursday morning in Citrus County, police said.

Michael R. Friedman, 63, was found in a car behind Applebee's in Crystal River with hoses running from exhaust into the vehicle. Police believe he was trying to kill himself.

Friedman is facing first-degree murder charges after allegedly shooting his ex-wife's boyfriend and injuring the woman.

According to investigators, Friedman drove from Delray Beach, about a 2.5-hour drive, and confronted the two Wednesday at a home on Osage Court. Citrus County is about 100 miles west of Winter Springs, located near the Gulf of Mexico.

The man who was shot was taken to Orlando Regional Medical Center, where he later died.

The woman suffered non-life-threatening injuries and was released from the hospital after being treated.

Two teenage boys were in the home at the time of the shooting, but they weren't injured, police said. 

Friedman moved out of the family's home when the couple separated in 2013. The divorce wasn't finalized until March 2015. According to court records, the woman filed two injunctions against Friedman in 2013. Only one was granted after she said he kicked the door in and threated to kill her.

The woman told police Friedman was bi-polar and wasn't taking medication at the time of the incident.

According to Seminole County Public Schools officials, Friedman was a teacher at Markham Woods Middle School. He was hired in 2009 and left in April 2011 "for personal reasons," said Michael Lawrence spokesperson for the district.

Friedman's ex-wife is also a teacher in the Seminole county school district.

The investigation is ongoing.