An Interior Ministry official says a suicide bomber has struck outside the country's largest prison on the eastern edge of the capital Kabul, killing seven people, including prison workers and security personnel.