A bomb targeting police outside a major Sufi shrine in the eastern Pakistani city of Lahore on Wednesday killed several people and wounded dozens, officials said.