They waded to the village mosque and managed to climb onto its roof.