The gunman who killed 10 people in Sweden's deadliest mass shooting appears to have shot himself, police have claimed.