Dynamical quantum phase transition in a bosonic system with long-range interactions