While absent from our apartment we had a visitor who left this on the balcony. I understand that it is a nest of a Mud Dauber - a type of wasp. The nest appears to be made of mud and the holes are where the young have emerged.
I did not destroy it but left it in situ. Hope on our next visit that it has not been colonised by something nasty.
.