An Israeli security guard has shot dead a Palestinian man in Jerusalem 's Old City after the Palestinian grabbed a gun from another Israeli guard and opened fire .