A judge has ordered a man from Saudi Arabia to leave the country after he attacked and threatened to kill his daughter.