A 14-year-old boy is being hailed as a hero after saving the life of a struggling swimmer in Melbourne.