Immediately contact your country’s closest embassy or consulate to the city you’re in. They can probably provide you with a “temporary” passport that will allow you to pass through airport controls and take your flight back home.