I believe the answer is: operant conditioning
operant conditioning refers to the process of behavioural modification that occurs through the use of rewards or punishment. In timmy's case, the attention that he got is what considered to be the reward, and acting in a bizzare way is the behavioural modification that timmy felt to be working in order to get his reward.