Thai official resigns after stealing paintings in Japan