K-State beats Bama 87-74