Police tried to rescue the accused, covered his face in black cloth (Representational)

A 28-year-old man, accused of raping and killing a four-year-old girl, was thrashed by a group of lawyers on the premises of a court in Madhya Pradesh's Indore district on Saturday.

Ankit Vijayvargiya, the accused, was brought to the sessions court at Mhow town after his three-day police remand ended.

Eye-witnesses said the moment he and the policemen escorting him entered the premises, two unidentified lawyers lunged at him and started beating him. Other lawyers soon joined them.

The police finally extricated him from the melee, and took him inside.

Vijayvargiya did not receive any serious injury in the incident. The police produced him before Additional Sessions Judge Sonali Patel who remanded him in judicial custody.

No case had been registered yet in connection with the assault on the court premises, a local police official said.

Meanwhile, the Mhow Bar Association has unanimously decided that no lawyer will defend Vijayvargiya, Association president Ravi Arya told PTI.

Vijayvargiya is accused of raping and killing a four-year-old girl near Mhow railway station on Sunday night.

After his arrest, he confessed to picking up the girl when she was sleeping with her parents under the overbridge near the station, the police said.

He allegedly took her to an abandoned army bungalow, raped her and strangled her to stop her from crying.

The police arrested him on the basis of CCTV footage in the area.