CAIRO — Egyptian police fired tear gas Sunday in an attempt to free a guard from rioting detainees, killing at least 36 as the country's military leader vowed to tolerate no more violence after days of clashes that killed nearly 900 people.