Authorities responded to the scene of a police-involved shooting in North Miami Friday.
The incident happened shortly before noon in the area of Northeast 6th Avenue and 144th Street.
According to North Miami Police, officials were doing surveillance on a house where a suspect wanted for an attempted murder of a woman in Okaloosa County near Fort Walton was staying.
The suspect, 36-year-old Joe Fernandez, noticed the undercover police and ran from the house, shooting at the officers, police said.
One of the police officers shot the suspect in the yard, officials said.
"They spotted the suspect, they suspect spotted the police officers and he began to run," North Miami Police Major Neal Cuevas said. "It was a very dangerous situation for anyone living in the area."
Fernandez was reportedly armed with a semi-automatic handgun, police said.
Residents who Fernandez was allegedly staying with had no comment.
Footage showed a man on a stretcher being taken from the scene in an ambulance.
Nearby North Miami Elementary School was placed on lockdown as a result of the incident.
Fernandez has an extensive criminal history and at least 13 prior arrests including some in Miami-Dade County, officials said.
Fernandez is charged with attempted murder, firearm by a convicted felon and robbery with a firearm, according to the U.S. Marshals Office. They say Fernandez attempted to rob a victim, shooting her five or six times and leaving her on the street. The victim remains in critical condition.