A terrorist shooting at a synagogue in Jerusalem has left five Israelis dead and several more injured. The suspect has been killed.