The girls and their father were brought safely back to shore