Broadband composite pulse for quantum sensing with a solid-state spin in diamond