At least 3,000 barrels of crude oil have been spilled in an Amazonian region after leaks from Peru's main oil pipeline, the state oil company said.