MIAMI-DADE COUNTY, Fla. -

A man was shot in the head early Thursday morning while sitting in a car in a Kmart parking lot in northeast Miami-Dade County.

Miami-Dade police said Daniel Martinez, 19, and Samuel Kontorosvky, 18, arrived in a stolen car. Police said while Martinez was trying to steal another car, a third man approached them and fired multiple shots.

Martinez was shot in the head. He crashed into a tree when he tried to drive away.

Martinez ran to a nearby home for help while Kontorosvky flagged down a passing police officer.

Martinez was taken to Jackson Memorial Hospital's Ryder Trauma Center.

Kontorosvky faces a charge of grand theft auto, and police said charges for Martinez were pending.

Police are still searching for the man who opened fire.

Follow Alex Fruin on Twitter @afruin

Follow Tamika Bickham on Twitter @TamikaBickham

Follow Local 10 on Twitter @WPLGLocal10