A 7-year-old girl was shot and killed after a Detroit police officer's gun went off during the execution of a search warrant at a house on the city's east side early Sunday morning.