The men, who had been in custody for a week over the latest rape case to shock India, were shot in the early hours during a re-enactment of the crime organised by police in Shadnagar, outside the southern city of Hyderabad.

“The police brought the accused to the crime spot as part of the investigation. The accused then started attacking the police with stones and sticks and then snatched the weapons and started firing,” police commissioner V.C. Sajjanar said.

“The police warned them and asked them to surrender but they continued to fire. Then we opened fire and they were killed in the encounter,” he told reporters at the scene, adding that the men had confessed to the crime during interrogation.

Television images showed the shoeless bodies of the suspects still lying in an open field on Friday afternoon, with guns in the hands of two of them.

The four men were accused of gang-raping and murdering a 27-year-old veterinary doctor before setting fire to her body underneath an isolated bridge late on November 27.