A Miami-Dade police officer was "ambushed" and shot Wednesday as authorities have detained one suspect and are searching for another, officials in Florida said. 

The narcotics detective was attacked and shot from behind, said Afredo Ramirez III, Miami-Dade Police director and chief of Safety and Emergency Response.

"While conducting a narcotics investigation, one of my detectives was cowardly ambushed and shot from behind by a subject that is still at large," he tweeted. "This is the fourth time I am at the hospital after an officer is attacked, I am tired of it. These attacks will not be tolerated."

One suspect was taken into police custody and another was still at-large, police said. 

FLORIDA WOMAN PLEADS GUILTY IN MILLION-DOLLAR COVID RELIEF SCAM

FL crime scene tape

Deputies in Florida are searching for one of two men involved in a carjacking at a smoke shop. (FOX News)

The officer was working a detail and taking a suspect into custody when he was ambushed and shot, FOX affiliate WSVN-TV reported. 

The victim was taken by another officer to the Ryder Trauma Center and was listed in stable condition, the news report said, citing law enforcement sources. 

Ramirez described the suspect's actions as "cowardly" and said authorities "will not rest until he is found." 

He also said the suspect was armed and dangerous. 

Miami-Dade Police

Miami-Dade police investigate a crime scene. An officer was shot Wednesday while working a drug case, officials said.  (Roberto Koltun/El Nuevo Herald/Tribune News Service via Getty Images)

CLICK TO GET THE FOX NEWS APP