By midnight, several police teams were deployed in the area and a case of rioting was registered, said a senior police official.
The violence erupted after a youth was thrashed by some locals when he was caught allegedly trying to forcefully enter the residence of a family belonging to the another community, said an official.
People from the youth's community soon gathered at the spot and were confronted by a group representing the other community, the official said.
Earlier in the day, two youths were shot at by unidentified persons near the same locality where violence erupted later in the evening, police said.