The head of Bulgaria’s anti-corruption authority resigned on Wednesday, several months after he was first implicated in the country’s “ApartmentGate” scandal, in which several senior politicians were found by journalists to have purchased prize real estate far below market value.