Taiwan is denying allegations that its diplomatic staff burned a Nauru flag while preparing to leave the country.