Residents stepped nervously through the dust and rubble after a powerful earthquake struck near the historic city of Marrakesh.