At least 24 people have been killed and dozens injured in an explosion at the Quetta railway station in Pakistan.