Hamas claimed responsibility for the attack in Jerusalem on Wednesday and its leaders in the Gaza Strip called for a third intifada in the city.