Police said they were trying to determine what prompted a man to shoot his grandmother and wound another woman before he crashed his car and ran into a busy supermarket, where he held dozens of people hostage in a tense standoff with scores of heavily armed officers outside.