Shutting down smuggling routes which supply arms and money to Hamas is the only way of halting the attacks on Gaza, Tony Blair has said.