President Donald Trump vowed Tehran "will pay" for the killing of American soldiers.