At least 24 officers were killed in the US operation to capture Venezuela's president, its military says as the government puts the total toll at more than 100.