WASHINGTON — Weeks of mounting tensions between the military and detainees at the wartime prison at Guantánamo Bay, Cuba, escalated into violence on Saturday during a raid in which guards forced prisoners living in communal housing to move to individual cells.