After Nepal’s prime minister abruptly resigned on Tuesday, which collapsed the nation’s government, the military imposed a curfew across Kathmandu, restricted public gatherings, and assumed control of the streets.