The Latest on the attacks on two off-duty Chicago police officers that occurred within days of each other (all times local):

2 p.m.

A man shot by a Chicago officer after police say he struck the off-duty officer multiple times with a baseball bat has been charged in the attack.

Police say 32-year-old Anthony Castaneda of Chicago faces charges of aggravated battery on a police officer and aggravated battery with a deadly weapon.

They say the officer was walking on the city's West Side on Saturday night when he spotted an "aggressive male subject" holding his waistband. Police say he identified himself as a police officer and was patting the person down for a weapon when a man charged him with a baseball bat.

They say the officer shot the man after being struck with the bat multiple times. The officer suffered a broken arm and other injuries.

No weapon was recovered.

It was not immediately clear if Castaneda has an attorney. A 17-year-old male has been charged with misdemeanor assault and marijuana possession.

___

10 a.m.

Chicago police detectives are questioning a person after an off-duty officer was shot in the leg during what the department says was an attempted robbery.

Interim Police Superintendent John Escalante says the person being questioned arrived at an area hospital with a gunshot wound. He says the officer told detectives that he believes he shot one of the suspects who tried to rob him early Monday on the city's South Side. Police say the shooting occurred about 2:20 a.m.

The officer was parked near his home when two gunmen approached his car and announced a robbery. He was not in uniform.

Escalante says the officer was "trying to comply" with the robbers' demands but pulled his weapon and fired when one of the robbers told the other to shoot him.