Prime Minister Narendra Modi appeared triumphant after BJP won the largest number of seats in the Karnataka state election.