Terror threatens Muslim world from within: Turkish president