Man shoots himself with child in car during police standoff