WASHINGTON -- In a high-level reshuffle of his national security team, President Barack Obama intends to move CIA Director Leon Panetta to the Pentagon July 1 to replace retiring Defense Secretary Robert M. Gates, while Gen. David Petraeus, the top commander in Afghanistan, will leave the Army to lead the CIA by Sept.