HYDERABAD, India — Indian police shot dead four men on Friday who were suspected of raping and killing a 27-year-old veterinarian near Hyderabad city, drawing applause from her family and hundreds of citizens outraged over sexual violence against women.

The men had been in police custody and were shot dead near the scene of last week's crime where they tried to snatch the weapons of accompanying policemen, said N. Prakash Reddy, a deputy commissioner of police in Shamshabad, near Hyderabad.

During the past week, thousands of Indians protested in several cities following the alleged rape and murder of the veterinarian, the latest in a series of horrific cases of sexual assault in the country.

The woman had left home for an appointment on her motor-scooter and later called her sister to say she had a flat tire. She said a truck driver had offered to help and that she was waiting near a toll plaza.

Police said she was abducted, raped and asphyxiated and her dead body then set alight on the outskirts of Hyderabad. Four men were arrested.

Reddy, the police officer, said that the men — two truck drivers and two truck cleaners, aged between 20 and 26 years — had been taken to the spot to re-construct the crime around 6 a.m. (7:30 p.m. ET) on Friday.

A man takes photos of the site where the burned body of a 27-year-old woman was found last week by a passer-by in Shadnagar. Mahesh Kumar A / AP

"And there was a cross-fire. In this, all the four accused have died," Reddy said. "Two policemen have been injured."

He did not immediately provide details on how many police had escorted the four accused and whether they were handcuffed or roped together as is usually the case.

Earlier a local police official had put the time of the deaths at around 3:30 a.m. There was no immediate explanation for the discrepancy.

Indian police have frequently been accused of extra-judicial killings, called "encounters", especially in gangland wars in Mumbai and insurrections in the state of Punjab and in disputed Kashmir. Police officers involved in such killings were called "encounter specialists" and were the subject of several movies.

The victim's family welcomed the news of the killings of the alleged perpetrators.

"It has been 10 days to the day my daughter died. I express my gratitude toward the police and government for this. My daughter’s soul must be at peace now," Reuters partner ANI quoted her father as saying.

A Reuters reporter saw the bodies of the four men lying in an open field, two of them face up, clothes stained with blood and barefoot, surrounded by policemen.

A large crowd had gathered at the site of the shooting and threw flower petals at police vans in support of the action. Some shouted "Long live police"; others hoisted police officials onto their shoulders and burst crackers.

Crimes against women have been unabated in India despite tough new laws that were enacted following the 2012 gang rape and murder of a woman in a Delhi bus that led to an outpouring of anger across the country.

Despite the setting up of fast track courts, cases have moved slowly, for lack of witnesses and the inability of many families to go through the long legal process. Some victims and their families have ended up being attacked for pursuing cases against powerful men, often local politicians.

In Uttar Pradesh state, where a rape victim was set ablaze on Thursday while she was on her way to court, opposition politician Mayawati said the police there should take "inspiration" from what happened in Hyderabad.

Indian police registered more than 32,500 cases of rape in 2017, according to the most recent government data. But courts disposed of only about 18,300 cases related to rape that year, leaving more than 127,800 cases pending at the end of 2017.