Karnataka beat Tamil Nadu to win Syed Mushtaq Ali trophy