A 17-year-old passenger was killed in an early Wednesday morning car crash in Saco.

Riley Tulley, 18, of Saco was driving south on Mast Hill Road and had just passed another vehicle in a black 2011 Ford Fusion about 12:31 a.m. when he left the road and struck a large tree, according to Deputy Chief Corey Huntress of the Saco Police Department.

A nearby homeowner called police after hearing a “loud bang” and someone screaming for help.

On arriving at the scene, officers found a teen girl who was a passenger in the girl walking in the road. Firefighters used the Jaws of Life to free Tulley and his other passenger, Daniel Abbott of Saco, who died in the crash, Huntress said Wednesday.

Tulley was taken to Maine Medical Center in Portland, where he was being treated for life-threatening injuries. The girl, whom Huntress didn’t identify, also was taken to Maine Medical Center with injuries not considered life-threatening.

Huntress said speed is believed to be a factor, but the crash remains under investigation.

Correction: A previous version of this story included incorrect information about the driver’s rate of speed. Deputy Chief Corey Huntress said speed is believed to be a factor in the crash.