A former US police detective has been convicted of using excessive force during a 2020 raid that left 26-year-old Breonna Taylor dead.