An incident at an ExxonMobil oil refinery in Hampshire caused thick black smoke to billow across the sky.