A police officer has been shot in the head after he took a wrong turn and entered a slum run by drug gangs in Rio de Janeiro.
He and two other officers from Brazil's national security force were using a GPS device to navigate unfamiliar streets when they took a wrong turn off a highway leading to Rio's international airport.
The truck they were travelling in was met by gunshots and one officer was shot in the head.
The Justice Ministry said on Thursday the officer was recovering from a four-hour surgery and was in stable condition but that the next 48 hours would be key.
A commando unit backed by a police helicopter was preparing to carry out an operation to apprehend those behind the attack.
"They were three officers with the National Force who accidentally went into the Vila do Joao community. Their car was hit by drug traffickers' [gunfire]," a police officer told AFP on condition that he not be named.
The incident took place in one of the sprawling slums known as favelas in the Complexo da Mare area.
"One of the police was shot in the head and underwent surgery and is now under observation. Another officer was shot but not seriously hurt," a Justice Ministry statement said.
"This was a regrettable and cowardly attack," Justice Minister Alexandre de Moraes said in Rio.
"We are working on identifying the suspects. Two already have been identified."
The officers were among the 5000-strong federal reinforcements sent in to help police South America's first Olympics, which kicked off last Friday.
Brazilian authorities have deployed an unprecedented 85,000 soldiers and police to protect the event.
Police, which fall under military control in Brazil, are engaged in often brutal operations against drug traffickers who control swathes of Rio's favelas. Shootings are an everyday occurrence.