A floating school in a Lagos lagoon has collapsed after it was hit by heavy downpour, but the local community has vowed to rebuild it.