A bomb targeting Pakistani police outside a major Sufi shrine in the city of Lahore on Wednesday killed at least 10 people and wounded more than 20, officials said.