Yemen says three al-Qaida militants who escaped from a Yemeni prison have surrendered to authorities .