The lone gunman and two hostages were killed and four other people wounded when police stormed a Sydney cafe where 17 people were being held early Tuesday, authorities said.