Haftar agrees to UN call for truce in Libya