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: Caught On Camera: San Bernardino Sheriff Deputy Kicks Surrendered Suspect In Head 2 times

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: LAFD Knocks Down 4-Acre Blaze In Remote Section Of Ken Malloy Harbor Regional Park

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: Caught On Video: Naked Man Burglarizes Bel-Air Home Before Coming Face To Face With Unsuspecting Homeowner

The investigation is ongoing.