A variational approach to a Kirchhoff-type problem involving two parameters