Motorists were urged to avoid the area in Gwynedd as emergency services worked at the scene