What was behind the behavior? I believe that it was simply a combination of frustration, disappointment, and the belief that he might could manipulate them into making an exception for him by showing how desperately he wanted to go to Cuba.
Oswald was just doing "theater".
And not very subtly, setting up ( very obvious) links to him and the embassies.