The 6.9-magnitude quake happened on Friday evening.
Three people died of heart attacks as the strong quake rocked the region, agency spokesman Agus Wibowo said on Saturday.
Another person fell to his death while trying to flee his house when the jolt happened, he said, while a fifth victim died from a panic attack.
Four more people were injured and more than 200 buildings were damaged, with about 13 houses destroyed, he added.
More than 1,000 people who had earlier fled to temporary shelters returned home after authorities convinced them it was safe to do so, Agus said.
“There was thundering noise – it sounded like a plane overhead – and I was just so scared that I ran,” said 69-year-old Isah at an evacuation shelter. — AFP
Did you find this article insightful?