CHICAGO (CBS) — A suspect tried to rob a man using a pellet gun early Sunday but instead was shot multiple times with a handgun in the Oakland neighborhood on the South Side.

A 23-year-old man was walking into his home about 1:20 a.m. when a 20-year-old walked up behind him in the 500 block of East 38th and pulled out what appeared to be a gun while he announced a robbery, according to Chicago Police.

READ MORE: 1 Killed, 9 Wounded In Weekend Shootings In Chicago

The older man took out his own legally-owned handgun and fired at the robber, police said. The younger man was shot in the abdomen and both legs.

He was taken to Stroger Hospital, where his condition stabilized, according to police.

READ MORE: Bo, The Obama Family Dog And 'Best Friend', Dies After Battle With Cancer

The robber’s gun turned out to be a pellet gun, police said.

Area Central detectives were investigating the incident.

MORE NEWS: Leroy Long Charged With Shooting On Dan Ryan Expressway Near 87th Street

(Source: Sun-Times Media Wire © Chicago Sun-Times 2017. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)