Destruction of first-order phase transition in a random-field Ising model