The direct hit on a seven-storey building tore through parts of the structure, injuring four people, the military and rescue services said.