The United States will not allow Tehran to run amok and do as it pleases in the Middle East, said Secretary of State John Kerry.