PHOTO: Sutopo Purwo Nugroho/Twitter
Now playing
00:56
People cling to ferry as it capsizes
PHOTO: Indonesian National Board for Disaster Management
Now playing
00:55
Moment floor collapses at Jakarta stock exchange
Indonesian bomb squade examine the site following a suicide bomb outside a church in Surabaya on May 13, 2018. - At least two people were killed and 13 others injured in bomb attacks, including a suicide blast, targeting churches in Indonesia
Indonesian bomb squade examine the site following a suicide bomb outside a church in Surabaya on May 13, 2018. - At least two people were killed and 13 others injured in bomb attacks, including a suicide blast, targeting churches in Indonesia's second biggest city Surabaya, police said. (Photo by JUNI KRISWANTO / AFP) (Photo credit should read JUNI KRISWANTO/AFP/Getty Images)
PHOTO: JUNI KRISWANTO/AFP/AFP/Getty Images
Now playing
02:15
Family of suicide bombers attack 3 churches
EDIT 7104    ADVISORY *FLASH*7104-INDONESIA-VOLCANO/TIMELAPSE-UGC  Bali volcano erupts second time in less than a week    Start: 26 Nov 2017 05:45 GMT    End: 26 Nov 2017 05:46 GMT    BALI, INDONESIA - Bali volcano erupts second time in less than a week.    Restrictions: PART MUST ON SCREEN COURTESY EMILION KUZMA-FLOYD / @EYES_OF_A_NOMAD
EDIT 7104 ADVISORY *FLASH*7104-INDONESIA-VOLCANO/TIMELAPSE-UGC Bali volcano erupts second time in less than a week Start: 26 Nov 2017 05:45 GMT End: 26 Nov 2017 05:46 GMT BALI, INDONESIA - Bali volcano erupts second time in less than a week. Restrictions: PART MUST ON SCREEN COURTESY EMILION KUZMA-FLOYD / @EYES_OF_A_NOMAD
PHOTO: EMILIO KUZMA-FLOYD/BNPB HANDOUT
Now playing
01:16
Watch how active Bali's volcano has been
PHOTO: Ruben Sauyai
Now playing
00:53
Cruise ship plows into pristine coral reef
indonesian man kills python after attack_00001523.jpg
indonesian man kills python after attack_00001523.jpg
PHOTO: AFP/Getty Images
Now playing
00:46
Man kills massive python after encounter
 jakarta leaning house_00003426.jpg
jakarta leaning house_00003426.jpg
Now playing
02:59
Leaning house is designed to stand out
mining inside Indonesia volcano ivan watson orig_00005406.jpg
mining inside Indonesia volcano ivan watson orig_00005406.jpg
PHOTO: CNN
Now playing
02:25
Mining for sulfur inside a volcano
hobbits indonesia orig_00010729.jpg
hobbits indonesia orig_00010729.jpg
Now playing
01:07
What were the 'Hobbits' of Indonesia?
(CNN) —  

At least 34 people have been confirmed dead in a ferry sinking off the coast of Indonesia’s South Sulawesi province.

Images from the scene Tuesday showed passengers in bright orange life vests clinging to the side of the KM Lestari Maju as it tilted sharply into the water not far from the coast of Bulukumba regency, near Selayar Island.

A leak on board the port side of the ship caused it to quickly run into trouble on rough seas.

As the boat began taking on water, the captain of the ship steered the vessel toward the nearby Selayar Island, and deliberately crashed it in the shallows to save as many lives as possible, according to Sutopo Purwo Nugroho, spokesman for Indonesia’s disaster management agency.

At the time of the crash, the boat was filled over capacity, with a total of 189 passengers. Cars, buses and trucks were also on board at the time. Authorities said 155 people had managed to swim or be pulled to safety.

Residents attempt to rescue victims of the sinking ferry Lestari Maju.
Residents attempt to rescue victims of the sinking ferry Lestari Maju.
PHOTO: Mustafa Syahril/AP

The rescue effort was initially complicated by the bad weather, which prevented large boats from approaching the wreck and trapped some passengers on the stricken ship overnight.

However, a fleet of smaller boats – including local fishing vessels – stepped in Wednesday to help.

Ferry passengers were pulled onto passing boats.
Ferry passengers were pulled onto passing boats.
PHOTO: Mustafa Syahril/AP

Deadly maritime accidents are not uncommon in Indonesia. Tuesday’s sinking comes two weeks after another ferry accident in a volcanic lake in Sumatra.

Rescuers remove a passenger from the sinking  KM Lestari Maju ferry.
Rescuers remove a passenger from the sinking KM Lestari Maju ferry.
PHOTO: Mustafa Syahril/AP

More than 190 people were presumed drowned in that incident, said to be one of the worst maritime accidents in the country for decades.