US sorry over ‘mistreatment’ of Pakistan military delegation