France is deploying thousands of troops to guard sensitive locations across the country and the Louvre Museum and the Palace of Versailles were evacuated in separate security alerts on Saturday, a day after an attacker stabbed a teacher to death in what the president called an act of terrorism.