The secretary of state said the US struck Iran to stop Tehran from retaliating against American troops following anticipated Israeli actions.