ST. LOUIS • A man whose release prompted an investigation into whether a police captain improperly ordered officers to free him was the victim of a shooting last week, the Post-Dispatch has learned.

The man, 42, told police that shortly after he got out of his car in the 5500 block of Emerson on Wednesday, a light gray two-door Chevy Cavalier traveling south approached him, according to records obtained by the newspaper.

The front-seat passenger pointed a silver or chrome handgun out the window and said, “Give me everything you got,” the records show. The passenger then fired several shots, striking the man once in the upper right thigh and the hood of his vehicle before fleeing, according to the records.

On Jan. 29, police say, the victim was the same man who fired several shots at two burglary suspects trying to break into his home in the 8800 block of Lowell Street. Police put the man in handcuffs after discovering he was a felon, making possession of a firearm illegal.