The detentions are thought to be connected to March’s deadly terrorist attack near Moscow, which involved mainly Tajik suspects.