Tuesday, he tweeted from Thailand that he had been in the caves and that a mini-sub made from rocket parts and named "Wild Boar" after the boys' soccer team, was ready if needed and would be left in Thailand in case it could be of future use.

REUTERS/Tyrone Siu An ambulance leaves from Tham Luang cave complex in the northern province of Chiang Rai, Thailand, July 10, 2018.

Officials confirmed to CBS News that all 12 players and their coach were safe following the third phase of the rescue operation.

Eight of the boys had been brought out of the cave by a team of Thai and worldwide divers on Sunday and Monday. The third mission, conducted on Tuesday, concluded with the rescue of the final four boys and the coach. Thai Navy SEALs say all 12 boys and their coach were rescued from the cave, ending an ordeal that lasted more than 2 weeks.

His colleagues had said that they wouldn't let his sacrifice go to waste. The first rescue on Tuesday took about five-and-a-half hours.

The 12 boys and their coach were trapped by flooding in the cave more than two weeks ago.

Each boy is escorted by two divers, one in front holds an oxygen tank for the boys while they're all tethered to a safety line.

Officials have generally waited hours to confirm rescues.

Tuesday's operation began just after 10 a.m.

"All eight are in good health, no fever. everyone is in a good mental state", Jesada Chokedamrongsuk, permanent secretary of the public health ministry, told reporters on Tuesday at Chiang Rai hospital in the clearest update on their condition so far. The eight rescued boys are healthy are in 'high spirits.' They are under constant medical supervision to eliminate any risk of infection.

Earlier, rescue operation commander Narongsak Osottanakorn said the mission began soon after 10am, involving 19 divers.

They said they were waiting for a medic and three SEALs who stayed with the boys in their dark refuge deep inside the cave complex to come out.

On the weekend Mr Musk said he had been building a "tiny, kid-size submarine" with "feedback from Thailand".

The boys will remain in quarantine because of a fear of infection, and it's understood they have only been able to speak to family members through a window. "Four plus one coach, so it's five". Four of them were rescued from the flooded Tham Luang cave on Sunday and the other four on Monday.

Eight boys were brought out alive over the last couple of days. But they also warned heavy rain could hamper their efforts. Musk himself also visited the cave in Thailand with his ingenious solution to help the rescue mission.

The team consisting of boys ages 11 to 16 was initially trapped while exploring the cave when rains flooded their exit path.

In the first video that Musk posted online, scuba divers can be seen testing out the submarine at the Palisades Charter High School pool.

Related news