I'm not entirely sure how to single out the exact ball here as the description given seems to imply that I have four groups of three balls and only three times to use the scale in order to determine the ball.
Based on that, I can use standard logic to figure out which group the different ball is in. Let's say that our groups are labeled A, B, C, and D, and let's also go ahead and declare that the different ball is in group A for simplicity and that the weight for all of the same balls is 0.5kg.
With only three attempts I would:
Weigh groups A and B together.
Weigh groups C and D together.
I now know which coupled set contains the ball since the weight will differ slightly.
From here, I split the set that was different so A and B.
I now weigh A.
Closing in on the end of the tunnel, I know that C and D together was 1kg. Since I now know the weight of group A, I can perform basic math to split the weight appropriately from the measurement of A and B together.
Finally, I subtract the weight of A from the weight of C and D, if the result is equal to A then B contains the different ball, otherwise A contains the different ball.
Again, I'm not 100% sure this is the answer you're looking for as I don't believe I have enough context on what the correct answer should state. However, this does tell you what group the different ball is in.