Mexico City's chief of police was shot and injured and two of his bodyguards killed in a dramatic assassination attempt that he quickly blamed on one of Mexico's most powerful drug gangs, the Jalisco New Generation Cartel (CJNG).
The city's public security chief Omar Garcia Harfuch suffered three bullet wounds as he and bodyguards came under heavy fire around dawn in an upscale Mexico City neighbourhood, where the attack was captured on security cameras.
Some three hours later, apparently from his hospital bed, Garcia sent out a message on Twitter blaming his injuries and the death of two bodyguards on a "cowardly attack" by the CJNG, a gang notorious as one of the most violent in Mexico.
A 26-year-old woman travelling in a car with relatives to sell street food nearby was killed in the gunfire that ripped through the Lomas de Chapultepec neighbourhood. The area is home to many wealthy people and has ambassadorial residences.
President Andres Manuel Lopez Obrador and Mexico City Mayor Claudia Sheinbaum said the attack showed that authorities were putting pressure on criminal gangs in the capital, which has rarely witnessed such brazen outbreaks of violence.
"There will be no turning back," Sheinbaum told a news conference.
Still, the early morning mayhem was the latest in a series of public security lapses that have raised tough questions about the president's ability to control gang violence.
Grainy security camera footage broadcast on Mexican television showed a group of heavily armed men in an open-backed truck disguised as a work vehicle, and an SUV blocking off a road to open fire on Garcia's car.
Separately, fast-arriving police could be seen shouting and moving towards the high calibre gunfire that rang out for several minutes just after 6.30 am local time (1130 GMT).
Television footage of Garcia's armoured SUV showed a vehicle riddled with bullets cordoned off by police.
Garcia was wounded in the shoulder, collarbone and the knee, Security Minister Alfonso Durazo told a news conference.
Late on Friday evening, Garcia wrote on Twitter that he had come out of surgery and was well.
The assassination attempt served as a warning that "nobody is off limits" and was reminiscent of previous attacks on officials during Mexico's drug war, said Gladys McCormick, a security analyst at Syracuse University in New York.
It fit the CJNG's modus operandi "to a T" and had the hallmark of the cartel staking out its turf, she said.
Led by a former police officer and based in the western state of Jalisco, the CJNG has been blamed for fuelling record levels of violence in Mexico during its battles to eliminate rivals for control of drug trafficking and crime rackets.
Lopez Obrador took office 19 months ago vowing to pacify the country, but homicides hit a new high last year and are on track be higher still in 2020.
The shooters fled. Mexican authorities said 12 suspects were quickly rounded up and that two others were later caught in the State of Mexico, a region bordering the capital.
Late on Friday, the Mexico City attorney general's office said three more suspects, including the alleged mastermind of the attack, were detained in the capital's Tlahuac borough.