But government forces have made gains against the militants in recent months , largely driving them out of the Swat valley , northwest of the capital , and their leader , Baitullah Mehsud , was killed by a missile fired by a U.S. drone aircraft in August .