Since we don’t know the specifics it’s impossible to say specifically how much each part contributed, but I’d say most of the responsibility is on the municipality.
I agree entirely. The local authorities should clearly block off and indicate hazards like this.