A Hampshire-based energy company has been fined for releasing natural gas and crude oil.