Two cruise missiles flew for more than two hours before accurately striking targets, state media said.