A suicide bomber blew himself up at the entrance of the interior ministry in Kabul on Wednesday, three days before elections, Afghan officials said, adding that there were casualties from the blast.