Well, the oft quoted source for that is the Warren v. District of Columbia case were the District of Columbia Court of Appeals held that “police did not owe a specific duty to provide police services to the plaintiffs based on the public duty doctrine”.
“To protect and serve” is a nice motto, to be sure, but mottos aren’t enforceable as far as I know.