As Modi visited Indian-administered Kashmir, dozens were detained to prevent anti-India demonstrations.