A gunman has been shot dead and three policemen are injured after a shooting incident near the Israeli embassy in Jordan.