The Pentagon has launched a probe after America's response to Israel's planned action against Iran was leaked online.