The killing of three American soldiers by an Afghan counterpart comes as the Trump administration discusses whether to send thousands of additional US and coalition troops to the country.