Existence of solutions of scalar field equations with fractional operator