Halliburton posts smaller profit and revenues