A suicide bomber in Pakistan has blown himself up close to a police checkpoint, killing at least 10 people.