Police are searching a flat linked to a man with mental health problems after an explosion in a restaurant.