Australia's Nick Kyrgios has won his first ATP tour match since 2022 with a first-round victory at the Miami Open.