Earlier , the U.S. military reported it had killed seven militants in Baghdad 's Sadr City district .