Boston Beer Co, the US brewer, has reported a loss in its third quarter, due to a hefty product recall and rising costs.