That magnitude-7.0 earthquake shook buildings and caused panic in the capital , Jakarta , about 200 kilometers away .