The earthquake made buildings sway in the capital Jakarta and caused panic in some villages , but there were no immediate reports of injuries .