Daesh-linked militants in Philippines release teacher