That quotation is from Deuteronomy, the Old Testament - the book written before Christ's time.

Can you find anything in the New Testament that encourages violence towards non-believers?  No?  I didn't think so.