The military says eight militants were killed Saturday in a clash that erupted as soldiers searched another area of Swat Valley .