Libya's chief prosecutor said Monday he ordered the detention of eight current and former officials pending his investigation into the collapse of two dams earlier this month, a disaster that sent a wall of water several metres high through the centre of a coastal city and left thousands of people dead.