Osama bin Laden was the leader of al-Qaeda who issued orders from a position of power, so it wouldn't have been difficult for al-Qaeda to
ascertained what happened to its senior leader. I am very sure that if an army general was killed, it wouldn't take long for his troops get the news.
You didn't answer the question. How would they possibly be able to know he was killed and not captured?