Two men have been detained in connection with a stone-pelting incident targeting a bus travelling toward Srinagar.