Bangladesh PM resigns, flees country