Nothing can justify terrorist attacks, pope says