A supermarket security guard who was hit on the head by a man wielding a sword shot and wounded the suspect late Wednesday, Miami police said.

The shooting happened just before 10 p.m. at the Presidente Supermarket at 500 SW Eighth St.

According to police, a man holding a "long knife" walked into the store and made death threats to several customers. The armed guard intervened after seeing the man confronting a woman, police said.

"The armed man turned to the security guard and hit him over the head," Miami police spokeswoman Kenia Reyes said. " The armed security guard discharged his firearm striking the armed suspect several times."

Fire-rescue indicated that the guard was hit on the head with an object at the Little Havana market.

The suspect and the security guard were taken to Jackson Memorial Hospital's Ryder Trauma Unit. Police have yet to identify the two men.

The man with the knife, identified as 43-year-old Hector Rivaflecha Hechavarria, is in extremely critical condition, police said. He was charged with one count of murder/premeditated/attempt/with a deadly weapon (sword).The security guard has minor head injuries and is in stable condition.

This report will be updated as more information becomes available.