Prime Minister Narendra Modi said Sunday’s curfew would test India’s ability to fight the virus.