Police in India say they have shot dead a man accused of killing eight policemen in the northern state of Uttar Pradesh.
Vikas Dubey, who was on the run for nearly a week after the incident, was held in the neighbouring state of Madhya Pradesh on Thursday.
Police said they were transporting Dubey to Uttar Pradesh when the car he was travelling in overturned.
They said he stole a policeman's gun and tried to flee.
The inspector general of police, Mohit Agarwal, told India's PTI news agency that policemen killed Dubey - described as a notorious gangster - in retaliation, after he refused to surrender and fired at officers.
But some have raised questions about the official account, in a state where police are often accused of using excessive force.
Who was Vikas Dubey?
Dubey, often described as one of the most notorious criminals in Uttar Pradesh, had more than 60 cases pending against him, including murder, attempted murder, kidnapping, arson, and rioting.
He allegedly killed a state minister inside a police station in 2001. He was arrested but was soon released on bail. Most cases against him followed the same trajectory.
Dubey was said to have good political connections. A group of armed men accompanied him everywhere he went, and witnesses against him often changed their testimonies or refused to appear in court.
Dubey was taken in for questioning as a teenager in early 2000s, after beating up some people in his village. But he was bailed by a local politician and no case was registered against him. From there he enjoyed a meteoric rise in Uttar Pradesh's criminal underworld.
As more and more cases were registered against him, his status continued to rise. But no prosecution was successfully brought. Dubey even dabbled in politics - both he and his wife won local civil polls. A senior political reporter in Uttar Pradesh said his ambition was to become a state lawmaker, and he was trying to formally enter politics at the time of his death.
How did Dubey die?
Police say that he stole an officer's gun and attempted to escape, firing at officers as they called for his surrender. They say that they fired back, injuring him seriously. He was declared dead within minutes after police took him to the hospital.
It is a familiar story in Uttar Pradesh.
Police shootings, known locally as "encounters", have become routine since Yogi Adityanath came to power in the state. The chief minister, from the Hindu nationalist Bharatiya Janata Party, promised to improve law and order in the state.
More than 1,000 encounters were reportedly recorded in his first year in power. His opponents have accused the police under Mr Adityanath of using excessive force.
Some on social media have raised doubts over Dubey's death, querying the official version of events, and asking why a suspect who reportedly surrendered to police would then attempt to escape, and how he would be able to take an officer's gun.
Police said he was arrested in a dramatic manner from a temple complex in Madhya Pradesh. But opposition parties said Dubey chose to publicly surrender at the temple after successfully escaping arrest for more than a week.
Opposition politicians had urged the police to ensure Dubey was safely brought in front of a court to stand trial.
Basic Q in #VikashDubeyEncounter - high value prisoner must be handcuffed, secured & escorted by large police force. If he broke free, seized weapon(usual story) & ran, doesn’t it prove gross lapse? So shouldn’t they face suspension/enquiry. If they are lauded what does it mean?— K. C. Singh (@ambkcsingh) July 10, 2020
Have absolutely no sympathy for Vikas Dubey but why did he surrender to the police if he wanted to escape? 🤔🤔🤔🤔— Anil Swarup (@swarup58) July 10, 2020
The case has been dominating headlines in India ever since the shootout last Friday that led to the death of eight police officers. Two of Mr Dubey's aides have been killed in clashes with the police since. And an inspector belonging to a police station near Dubey's village was arrested over allegations that he helped the fugitive.
Officers were looking for Dubey last week in connection with a previous case when they were fired on from a height, they said, leading to heavy casualties.