The violence nonetheless continued as revolutionary militias sprung up against the Soviet Army and the ÁVH; the roughly 3,000-strong resistance fought Soviet tanks using Molotov cocktails and machine-pistols. Though the preponderance of the Soviets was immense, they suffered heavy losses, and by 30 October 1956, most Soviet troops had withdrawn from Budapest to garrison the countryside. For a time, the Soviet leadership was unsure how to respond to developments in Hungary but eventually decided to intervene to prevent a destabilization of the Soviet bloc. On 4 November, reinforcements of more than 150,000 troops and 2,500 tanks entered the country from the Soviet Union. Nearly 20,000 Hungarians were killed resisting the intervention, while an additional 21,600 were imprisoned afterward for political reasons. Some 13,000 were interned and 230 brought to trial and executed. Nagy was secretly tried, found guilty, sentenced to death, and executed by hanging in June 1958. Because borders were briefly opened, nearly a quarter of a million people fled the country by the time the revolution was suppressed.