A 23-year-old man was shot Wednesday afternoon as he sat in a car in the Chatham neighborhood.

The man was in the car about 12:20 p.m. when another male walked up to him in the 7600 block of South Champlain and fired shots, Chicago Police said.

He was struck in his leg, but managed to drive away and flag down an officer, police said. The shooter ran off.

Police said the man was taken to Stroger Hospital, where his condition was stabilized.