NATO says three American soldiers have been killed in two separate bomb attacks in Afghanistan .