HAWTHORNE (CBSLA.com) — A man was hospitalized Wednesday after attempting to rob several people in the parking lot at Denny’s in Hawthorne.

Gunfire broke out just before 3 a.m. in the 13200 block of Hawthorne Boulevard, according to police.

READ MORE: Garcetti: 88,000 Vaccines To Be Given Out During The Week At City Sites

Upon their arrival, officers located the robbery suspect on the ground suffering from a gunshot wound.

Paramedics transported him to a hospital where he was listed in critical condition.

READ MORE: 'I Was Desperate': Prince Harry And Meghan's Bombshell Interview

A preliminary investigation revealed the suspect robbed four people in the parking lot. When he started to flee from the scene, the victims hopped into their car and ran him over.

When the suspect was struck by the vehicle, he accidentally fired his gun and shot himself in the head.

The victims were not harmed during the encounter.

MORE NEWS: Woman, Child Found Dead Inside Rancho Cucamonga Home

The investigation is ongoing.