Berkshire Hathaway’s operating earnings were hurt by a $38 million loss for its insurance underwriting businesses.