Officials say a Miami police officer shot a man who was wielding a machete at a public park.

Police say an officer responded to a violent call at Juan Pablo Duarte Park on Tuesday afternoon. The officer spotted the man with a machete near the entrance, and a confrontation with the man led to the officer firing his gun.

The unidentified man was taken to Jackson Memorial Hospital's trauma unit, where he was undergoing surgery. His condition wasn't immediately available.