The secretary of state accused Iran of pursuing nuclear weapons, and took oblique aim at Senator Barack Obama, who has said he would engage Iran diplomatically.