Prime minister escapes attack