I think that Kakashi killed her because they were probably outnumbered and he killed her so she wouldn't reveal anything about Konoha - Just like Kisame did about his comrades as they were about to be captured by Ibiki.

But yeah, it was cool how Kakashi's hand went straight through Rin like he was trying to grab her boobs lol