Pakistan had reaffirmed its support for Saudi Arabia under a trilateral agreement that treats an attack on one member as an attack on all.