Ukraine PM resigns over violent protests