Online Attack Would Be Act of War, Pentagon Says