HIALEAH, Fla. -

Police arrested a man who was shot by an off-duty officer outside a Publix.

The shooting happened at 1290 W. 68th Street about 8:20 p.m. Tuesday.

The officer, working off-duty at the Publix, heard a woman screaming, "No! No! No!" and saw Javier Diaz struggling with her over her purse, according to an arrest affidavit. Diaz, 30, saw the officer and began running away.

The officer chased Diaz through the neighborhood until he got into a car in the parking lot, police say. Another officer confronted Diaz, who put his car in reverse and tried running him over.

Diaz was shot several times, police say. He was airlifted to Jackson Memorial Hospital in critical condition.

"One in the stomach and one in the side," said his cousin, Susana Lopez, who let Diaz borrow her car Tuesday. "When you see the car in the video in Publix, it's still in the parking spot, and then there's shots on my passenger [side], in the front, and on the side. How those angles explain that he was about to turn on the car I don't understand."

Police charged Diaz with attempted murder on a law enforcement officer, attempted strong arm robbery, and resisting arrest.

According to police, Diaz served a 9-year prison term for stabbing a boy while trying to steal his chain.

"He's made some mistakes in the past, but it's been four years that he's been just trying to do good," said Lopez.