Police in the Indian Union Territory of Jammu Kashmir have detained 50 people in connection with a terror attack on a bus carrying pilgrims in the Reasi district.