Iran has warned it will respond immediately to any threat against its people or leadership, even as U.S. and Iranian officials hold technical talks in Doha to preserve the ceasefire.