A Chicago police officer was grazed in the leg as officers opened fire and killed a man who lunged at them with a hammer after stabbing another man in the South Chicago neighborhood, officials said.

The officers first used a Taser on the man when they arrived in the 7900 block of South Shore Drive around 11:45 p.m. and saw him stabbing the other man, police said. The Taser had "no effect," police said, and the man pulled out a hammer and ran toward the officers.

The department would not say whether the wounded officer shot herself or was hit by another officer as they fired at the man. More than 30 bullet casings could be seen at the scene of the shooting, down the street from South Shore Food & Liquors.

The man suffered several gunshot wounds and was pronounced dead at the scene, according to the Cook County medical examiner's office. Police said he was not carrying any identification.

The man was identified as Michael Wilson, 20, of the 10000 block of South Oglesby, according to the Cook County medical examiner's office. An autopsy conducted today determined that Wilson died of multiple gunshot wounds, according to the office.

The wounded officer was driven by another officer to Advocate Trinity Hospital, where she was treated for a graze wound to the leg and released.

Chicago Police Supt. Garry McCarthy, who was briefly at the scene, declined to speak to reporters at the hospital.