Jordan tells Egypt to 'remain firm' in the face of terrorism