Don't these two verses contradict?
1st Kings 15:29 (KJV)
And it came to pass, when he reigned, that he smote all the house of Jeroboam; he left not to Jeroboam any that breathed, until he had destroyed him, according unto the saying of the Lord, which he spake by his servant Ahijah the Shilonite.
1st Kings 16:7 (KJV)
And also by the hand of the prophet Jehu the son of Hanani came the word of the Lord against Baasha, and against his house, even for all the evil that he did in the sight of the Lord, in provoking him to anger with the work of his hands, in being like the house of Jeroboam; and because he killed him.
Background story is that son of Jeroboam got sick and his mother took him to Ahijah, there he told her that everyone from Jeroboam family will die. "1st Kings 14:14 (KJV) Moreover the Lord shall raise him up a king over Israel, who shall cut off the house of Jeroboam that day: but what? even now"
So yeah, I am a bit confused. If God decided to kill him, why did he take that as transgressions to the one who killed him?