QatarEnergy has agreed to acquire Chevron's stake in an offshore oil block in Namibia, further expanding its footprint in the African oil exploration hotspot.