The Pakistani military launched an offensive in the region against the Taliban about three months ago , after the collapse of a peace deal to impose strict Islamic law ( Sharia ) in Swat Valley .