PHILADELPHIA (CBS) — Minutes after being released from prison, Philadelphia police say a 26-year-old man found himself on the wrong side of the law again, and now he’s in the hospital.

Jamal Bennett walked out of the Curran Fromhold Correctional Facility Friday night a free man. That didn’t last long.

READ MORE: Double Shooting Leaves Man, Woman Dead In Philadelphia's Fairhill Section, Police Say

Police say Bennett got to the parking lot just after 11 p.m. where he tried to carjack a 66-year-old prison guard who had just finished his shift. The two men fought next to the officer’s vehicle until the off-duty guard pulled a gun and shot Bennett in the chest.

Two Strangers Recreate WWII Kiss Photo At Eagles Parade

READ MORE: Donald Grier, Arrested, Charged With First-Degree Murder In Connection To Triple Homicide In Townsend, New Castle County, Police Say

“It seems like he was starting his life of crime over again within minutes of being released, attempting to carjack this off-duty correctional officer,” said Chief inspector Scott Small. “So it is somewhat bizarre.”

Bennett was rushed to the hospital in critical condition but is expected to survive.

Authorities say Bennett has been locked up seven times since 2011 and was being held for probation violations on a previous weapons charge.

MORE NEWS: Police Identify Man Killed In North Philadelphia Hit-And-Run As 64-Year-Old Raymond Hodgins

The officer suffered injuries to his head and neck.