A suicide bomber targeting security forces in Pakistan's Swat Valley has killed at least ten people.