Shekhar participates in the movement to stop the riots with other religious leaders (who realise the futility of the riots by then) and succeeds.
Shekhar participates in the movement (who realise the futility of the riots by then). This is to stop the riots with other religious leaders. Shekhar succeeds.