The airline's
Contract of Carriage has a provision which seems to specifically apply to your circumstance:
10.5.2 We may refuse a refund on a Ticket which has been presented to us, or to Government officials, as evidence of intention to depart from that country, unless you establish to our satisfaction that you have permission to remain in the country or that you will depart from that country by another carrier or another means of transport.