U.S. crude oil inventories fell by 3.4 million barrels last week, which was more than expected, amid a rise in exports. Gasoline stocks fell as demand remained buoyant.