Contract oil and gas driller Nabors Industries Ltd posted a second-quarter loss compared with a profit a year earlier, hurt by depressed…