A 33-year-old suspect has been detained after explosions in central Lviv killed a police officer and injured 25 people.