It was a U-boat, there were several that operated in the Indian Ocean.
https://en.wikipedia.org/wiki/Monsun_Gruppe
The The Tasman Sea is not in the Indian Ocean