One person is dead and 25 people have been injured in what Ukrainian authorities say was a terrorist attack in the western city of Lviv.