Niger and Chad attacked Boko Haram militants on Monday on islands on Lake Chad that the Islamists have used as a safe haven, military sources in Niger said.