Seven dead in attack on Afghan ministry