At least 19 people were killed in the city of Ternopil when missiles hit a residential building, the authorities there said.