A suicide bomber blew himself up at the entrance to a government office Monday in northern Afghanistan, killing at least 28 people, police said.