A planned suicide attack on the grand mosque in the Muslim holy city of Mecca was foiled. A suicide bomber blew himself up when security forces surrounded the building he was in, the Interior Ministry says.